You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Fix property editor Matrix3 and Matrix32 editing
This commit is contained in:
@@ -1361,7 +1361,7 @@ void CustomPropertyEditor::_modified(String p_string) {
|
|||||||
} break;
|
} break;
|
||||||
case Variant::MATRIX32: {
|
case Variant::MATRIX32: {
|
||||||
|
|
||||||
Matrix3 m;
|
Matrix32 m;
|
||||||
for(int i=0;i<6;i++) {
|
for(int i=0;i<6;i++) {
|
||||||
|
|
||||||
m.elements[i/2][i%2]=value_editor[i]->get_text().to_double();
|
m.elements[i/2][i%2]=value_editor[i]->get_text().to_double();
|
||||||
@@ -2846,6 +2846,13 @@ void PropertyEditor::update_tree() {
|
|||||||
item->set_icon( 0,get_icon("Vector","EditorIcons") );
|
item->set_icon( 0,get_icon("Vector","EditorIcons") );
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
case Variant::MATRIX32:
|
||||||
|
case Variant::MATRIX3: {
|
||||||
|
|
||||||
|
item->set_cell_mode( 1, TreeItem::CELL_MODE_CUSTOM );
|
||||||
|
item->set_editable( 1, true );
|
||||||
|
item->set_text(1, obj->get(p.name));
|
||||||
|
} break;
|
||||||
case Variant::TRANSFORM: {
|
case Variant::TRANSFORM: {
|
||||||
|
|
||||||
item->set_cell_mode( 1, TreeItem::CELL_MODE_CUSTOM );
|
item->set_cell_mode( 1, TreeItem::CELL_MODE_CUSTOM );
|
||||||
|
|||||||
Reference in New Issue
Block a user