Fix inspector properties not refreshed when changing the geometry type of a Voxel resource

This commit is contained in:
Marc Gilleron 2021-12-11 21:37:09 +00:00
parent 4be341e69e
commit 688b8b9a7b

View File

@ -114,6 +114,9 @@ void Voxel::set_transparency_index(int i) {
}
void Voxel::set_geometry_type(GeometryType type) {
if (type == _geometry_type) {
return;
}
_geometry_type = type;
switch (_geometry_type) {
@ -135,6 +138,9 @@ void Voxel::set_geometry_type(GeometryType type) {
ERR_PRINT("Wtf? Unknown geometry type");
break;
}
#ifdef TOOLS_ENABLED
property_list_changed_notify();
#endif
}
Voxel::GeometryType Voxel::get_geometry_type() const {