|
@@ -132,6 +132,7 @@ void MeshLibrary::create_item(int p_item) {
|
|
ERR_FAIL_COND(p_item < 0);
|
|
ERR_FAIL_COND(p_item < 0);
|
|
ERR_FAIL_COND(item_map.has(p_item));
|
|
ERR_FAIL_COND(item_map.has(p_item));
|
|
item_map[p_item] = Item();
|
|
item_map[p_item] = Item();
|
|
|
|
+ emit_changed();
|
|
notify_property_list_changed();
|
|
notify_property_list_changed();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -145,7 +146,6 @@ void MeshLibrary::set_item_mesh(int p_item, const Ref<Mesh> &p_mesh) {
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].mesh = p_mesh;
|
|
item_map[p_item].mesh = p_mesh;
|
|
emit_changed();
|
|
emit_changed();
|
|
- notify_property_list_changed();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void MeshLibrary::set_item_mesh_transform(int p_item, const Transform3D &p_transform) {
|
|
void MeshLibrary::set_item_mesh_transform(int p_item, const Transform3D &p_transform) {
|
|
@@ -157,7 +157,6 @@ void MeshLibrary::set_item_mesh_transform(int p_item, const Transform3D &p_trans
|
|
void MeshLibrary::set_item_shapes(int p_item, const Vector<ShapeData> &p_shapes) {
|
|
void MeshLibrary::set_item_shapes(int p_item, const Vector<ShapeData> &p_shapes) {
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].shapes = p_shapes;
|
|
item_map[p_item].shapes = p_shapes;
|
|
- notify_property_list_changed();
|
|
|
|
emit_changed();
|
|
emit_changed();
|
|
notify_property_list_changed();
|
|
notify_property_list_changed();
|
|
}
|
|
}
|
|
@@ -165,22 +164,18 @@ void MeshLibrary::set_item_shapes(int p_item, const Vector<ShapeData> &p_shapes)
|
|
void MeshLibrary::set_item_navigation_mesh(int p_item, const Ref<NavigationMesh> &p_navigation_mesh) {
|
|
void MeshLibrary::set_item_navigation_mesh(int p_item, const Ref<NavigationMesh> &p_navigation_mesh) {
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].navigation_mesh = p_navigation_mesh;
|
|
item_map[p_item].navigation_mesh = p_navigation_mesh;
|
|
- notify_property_list_changed();
|
|
|
|
emit_changed();
|
|
emit_changed();
|
|
- notify_property_list_changed();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void MeshLibrary::set_item_navigation_mesh_transform(int p_item, const Transform3D &p_transform) {
|
|
void MeshLibrary::set_item_navigation_mesh_transform(int p_item, const Transform3D &p_transform) {
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].navigation_mesh_transform = p_transform;
|
|
item_map[p_item].navigation_mesh_transform = p_transform;
|
|
emit_changed();
|
|
emit_changed();
|
|
- notify_property_list_changed();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
void MeshLibrary::set_item_navigation_layers(int p_item, uint32_t p_navigation_layers) {
|
|
void MeshLibrary::set_item_navigation_layers(int p_item, uint32_t p_navigation_layers) {
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].navigation_layers = p_navigation_layers;
|
|
item_map[p_item].navigation_layers = p_navigation_layers;
|
|
- notify_property_list_changed();
|
|
|
|
emit_changed();
|
|
emit_changed();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -188,7 +183,6 @@ void MeshLibrary::set_item_preview(int p_item, const Ref<Texture2D> &p_preview)
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
ERR_FAIL_COND_MSG(!item_map.has(p_item), "Requested for nonexistent MeshLibrary item '" + itos(p_item) + "'.");
|
|
item_map[p_item].preview = p_preview;
|
|
item_map[p_item].preview = p_preview;
|
|
emit_changed();
|
|
emit_changed();
|
|
- notify_property_list_changed();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
String MeshLibrary::get_item_name(int p_item) const {
|
|
String MeshLibrary::get_item_name(int p_item) const {
|