Got nodes to update when the node view isn't open

This commit is contained in:
Peter Slattery 2019-11-02 10:47:27 -07:00
parent 85c0602f94
commit e9a6bdd376
3 changed files with 10 additions and 17 deletions

View File

@ -548,6 +548,7 @@ UPDATE_AND_RENDER(UpdateAndRender)
State->LEDBufferList->Colors, State->LEDBufferList->Colors,
State->LEDBufferList->Count, State->LEDBufferList->Count,
Context.DeltaTime); Context.DeltaTime);
ResetNodesUpdateState(State->NodeList);
} }
ClearTransientNodeColorBuffers(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++) for (s32 m = 0; m < State->Modes.ActiveModesCount; m++)
{ {
operation_mode OperationMode = State->Modes.ActiveModes[m]; operation_mode OperationMode = State->Modes.ActiveModes[m];

View File

@ -285,7 +285,8 @@ FOLDHAUS_INPUT_COMMAND_PROC(EndNodeFieldTextEdit)
} }
input_command NodeFieldTextEditCommands [] = { input_command NodeFieldTextEditCommands [] = {
{ KeyCode_Enter, KeyCode_Invalid, Command_Began, EndNodeFieldTextEdit}, { KeyCode_Enter, KeyCode_Invalid, Command_Began, EndNodeFieldTextEdit },
{ KeyCode_MouseLeftButton, KeyCode_Invalid, Command_Began, EndNodeFieldTextEdit },
DEFAULT_TEXT_ENTRY_INPUT_COMMANDS_ARRAY_ENTRY, DEFAULT_TEXT_ENTRY_INPUT_COMMANDS_ARRAY_ENTRY,
}; };
@ -474,12 +475,6 @@ FOLDHAUS_INPUT_COMMAND_PROC(NodeViewBeginMouseSelectInteraction)
OPERATION_RENDER_PROC(RenderNodeView) OPERATION_RENDER_PROC(RenderNodeView)
{ {
node_view_operation_state* OpState = (node_view_operation_state*)Operation.OpStateMemory; 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); RenderNodeList(State->NodeList, State->NodeRenderSettings, RenderBuffer);
} }

View File

@ -16,11 +16,7 @@ update functions
UI Improvements UI Improvements
- highlight node field under active edit - highlight node field under active edit
- print node field names on hover or on the node
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
Application Application
- More efficient HSV <-> RGB - More efficient HSV <-> RGB
@ -78,4 +74,9 @@ Optimization
- patterns are asking to be multithreaded - patterns are asking to be multithreaded
- probably want to convert as much color functions to use u32 Packed Colors - 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 - - Probably want to think about this more. What about supporting different color depths
- for different output devices? - 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