Jump to content

[SOLVED] Node copy paste doesn't work for double precision builds


photo

Recommended Posts

Hi,

 

Our art guys have observed that using the Copy/Paste functionality in the Node window of the editor is not possible for double precision builds. The Paste button remains permanently disabled regardless of how many times Copy is pressed. On closer inspection, I looked at editor_nodes.h and found that line 798 of editor_nodes.h

 

paste_b.setEnabled(is_mat4(transform_buffer) && (node != NULL || nodes.size() > 0));

 

is_mat4 returns 0 always since the transform_buffer is a dmat4 in double precision builds. I can work around this but I just thought I'd feed this back to the devs.

Link to comment

Very good analysis.

 

@UNIGINE:

 

There are multiple code sequences showing the same error. Using "find in files" yields

 

core\editor\editor_config.h    lines 74,88

core\editor\editor_nodes.h    line 798

core\editor\editor_utilis.h       lines 675, 688

 

For sure it would be helpful to have some additional macro definitions like is_Mat4() expanding to is_mat4() or is_dmat4() depending on build type like available for data types itself.

Link to comment

Will be chaged to "paste_b.setEnabled(is_int(transform_buffer) == 0 && (node != NULL || nodes.size() > 0));" in the upcoming SDK update.

 

Ulf, this macro definition is not required now.

Link to comment
×
×
  • Create New...