Jump to content

[SOLVED] Nodes::select_node problem


photo

Recommended Posts

Posted

Hello.

 

I have the following code in my script:

 

Node selected_node = engine.editor.getNodeByName("Chair");

engine.editor.call("Nodes::select_node", selected_node, 0);

 

Inside select_node function in Nodes namespace in editor_nodes.h, i have added the following in first line

 

 

void select_node(Node n,int toggle) {

log.message("Node: "+ n.getName() + "\n");

.....

.....

.....

}

 

The problem is that i get different results in node names. Param Node n is not the chair i asked to be selected.

Any idea of how to continue ?

 

Thank you for your time.

  • 2 weeks later...
Posted

Hi,

 

Sorry for late reply. I patched editor code as you wrote above, but it seems all worked fine for my sample (see attachments). Could you provide your test scene?

 

You can unzip my test sample in your data folder and see the results.

editor_nodes.zip

Posted

Hello.

 

I updated Unigine to latest version and it worked fine.

As it seems previous version had the problem.

 

Sorry and thnx.

×
×
  • Create New...