yang.zhang Posted August 28, 2014 Posted August 28, 2014 1: create a button with gui 2: in the click callback put the following code NodeDummy newDummy=add_editor(new NodeDummy()); 3: result: change the view and every time you click the button, the viewport goes back for me.
silent Posted August 29, 2014 Posted August 29, 2014 Hi, For temporary solution you can comment line 351 (distance = 0.0f;) from editor_controls.h and change following code on line 347: position = p.getPosition(); set_direction(p.getDirection()); to position = Vec3(position); set_direction(get_direction()); We will try to fix this behavior in the next SDK update. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts