Jump to content

[SOLVED] add_editor cause viewport change


photo

Recommended Posts

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.

Link to comment

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:

Link to comment
×
×
  • Create New...