Skip to content

Commit

Permalink
Put the editor button update when entering to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyyrylainen committed Feb 15, 2019
1 parent 0a3e4cb commit 17856a4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/microbe_stage/microbe_editor/microbe_editor.as
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ class MicrobeEditor{
//! This is called each time the editor is entered so this needs to properly reset state
void init()
{
updateGuiButtonStatus(checkIsNucleusPresent());
gridSceneNode = hudSystem.world.CreateEntity();
auto node = hudSystem.world.Create_RenderNode(gridSceneNode);
node.Scale = Float3(HEX_SIZE, 1, HEX_SIZE);
Expand Down Expand Up @@ -131,6 +130,9 @@ class MicrobeEditor{
LOG_INFO("Starting microbe editor with: " + editedMicrobe.length() +
" organelles in the microbe");

// Update GUI buttons now that we have correct organelles
updateGuiButtonStatus(checkIsNucleusPresent());

// Reset to cytoplasm if nothing is selected
if(activeActionName == ""){
LOG_INFO("Selecting cytoplasm");
Expand Down

0 comments on commit 17856a4

Please sign in to comment.