Got nodes to update when the node view isn't open
This commit is contained in:
parent
85c0602f94
commit
e9a6bdd376
|
@ -548,6 +548,7 @@ UPDATE_AND_RENDER(UpdateAndRender)
|
|||
State->LEDBufferList->Colors,
|
||||
State->LEDBufferList->Count,
|
||||
Context.DeltaTime);
|
||||
ResetNodesUpdateState(State->NodeList);
|
||||
}
|
||||
ClearTransientNodeColorBuffers(State->NodeList);
|
||||
|
||||
|
@ -723,10 +724,6 @@ UPDATE_AND_RENDER(UpdateAndRender)
|
|||
}
|
||||
}
|
||||
|
||||
///////////////////////////////////////
|
||||
// Figuring Out Nodes
|
||||
//////////////////////////////////////
|
||||
|
||||
for (s32 m = 0; m < State->Modes.ActiveModesCount; m++)
|
||||
{
|
||||
operation_mode OperationMode = State->Modes.ActiveModes[m];
|
||||
|
|
|
@ -286,6 +286,7 @@ FOLDHAUS_INPUT_COMMAND_PROC(EndNodeFieldTextEdit)
|
|||
|
||||
input_command NodeFieldTextEditCommands [] = {
|
||||
{ KeyCode_Enter, KeyCode_Invalid, Command_Began, EndNodeFieldTextEdit },
|
||||
{ KeyCode_MouseLeftButton, KeyCode_Invalid, Command_Began, EndNodeFieldTextEdit },
|
||||
DEFAULT_TEXT_ENTRY_INPUT_COMMANDS_ARRAY_ENTRY,
|
||||
};
|
||||
|
||||
|
@ -474,12 +475,6 @@ FOLDHAUS_INPUT_COMMAND_PROC(NodeViewBeginMouseSelectInteraction)
|
|||
OPERATION_RENDER_PROC(RenderNodeView)
|
||||
{
|
||||
node_view_operation_state* OpState = (node_view_operation_state*)Operation.OpStateMemory;
|
||||
|
||||
// TODO(Peter): Not sure we want to be doing Node Functionality updates in a mode. This should happen every
|
||||
// frame regardless of whether or not we're viewing the nodes.
|
||||
// TODO(Peter): Make sure that RenderNodeList isn't also updating them!!
|
||||
ResetNodesUpdateState(State->NodeList);
|
||||
|
||||
RenderNodeList(State->NodeList, State->NodeRenderSettings, RenderBuffer);
|
||||
}
|
||||
|
||||
|
|
11
todo.txt
11
todo.txt
|
@ -16,11 +16,7 @@ update functions
|
|||
|
||||
UI Improvements
|
||||
- highlight node field under active edit
|
||||
|
||||
Name
|
||||
- Splash screen (like blender) (thisll be fun)
|
||||
- - Image importer (stb image? or find a png > bmp converter for the image you have)
|
||||
- - Display on startup
|
||||
- print node field names on hover or on the node
|
||||
|
||||
Application
|
||||
- More efficient HSV <-> RGB
|
||||
|
@ -79,3 +75,8 @@ Optimization
|
|||
- probably want to convert as much color functions to use u32 Packed Colors
|
||||
- - Probably want to think about this more. What about supporting different color depths
|
||||
- for different output devices?
|
||||
|
||||
Name
|
||||
- Splash screen (like blender) (thisll be fun)
|
||||
- - Image importer (stb image? or find a png > bmp converter for the image you have)
|
||||
- - Display on startup
|
||||
|
|
Loading…
Reference in New Issue