Explorar el Código

Fix event listener not being removed properly in Scene destructor

Ivan Safrin hace 11 años
padre
commit
8486ff0a5a

+ 1 - 0
Core/Contents/Source/PolyScene.cpp

@@ -145,6 +145,7 @@ void Scene::fixedUpdate() {
 
 Scene::~Scene() {
 	core->getInput()->removeAllHandlersForListener(this);
+    core->removeAllHandlersForListener(this);
 	CoreServices::getInstance()->getSceneManager()->removeScene(this);	
 	delete defaultCamera;
 }

+ 1 - 1
IDE/Contents/Source/PolycodeMaterialEditor.cpp

@@ -53,7 +53,7 @@ PostEditorPane::PostEditorPane(ResourcePool *resourcePool) : UIElement() {
 	baseProps->addProp(fp16Prop);
 	fp16Prop->addEventListener(this, Event::CHANGE_EVENT);
 		
-	baseProps->propHeight = 100;	
+	baseProps->propHeight = 300;
 
 	targetsProps = new RenderTargetsSheet();
 	propList->addPropSheet(targetsProps);