Jump to content

[SOLVED] [2.0] beta:crash in editor_objects.h


photo

Recommended Posts

hi there seems a bug in the editor_objects.h.

 

material_buffer = new Buffer(0);

 

need to change to

 

material_buffer = new ::Buffer(0);

otherwise it will crash when click copy button.

material = object.getMaterialName(surface);
if(object.isMaterialInherited(surface)) {
	material_buffer = new ::Buffer(0);
	Material m = object.getMaterialInherit(surface);
	m.saveState(material_buffer,1);
	material_buffer.seekSet(0);
}

property = object.getPropertyName(surface);
if(object.isPropertyInherited(surface)) {
	property_buffer = new ::Buffer(0);
	Property p = object.getPropertyInherit(surface);
	p.saveState(property_buffer,1);
	property_buffer.seekSet(0);
}

Link to comment
×
×
  • Create New...