summaryrefslogtreecommitdiffstats
path: root/scene/resources/3d/primitive_meshes.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/3d/primitive_meshes.h')
-rw-r--r--scene/resources/3d/primitive_meshes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/3d/primitive_meshes.h b/scene/resources/3d/primitive_meshes.h
index 4d2d0760b3..fc2489923a 100644
--- a/scene/resources/3d/primitive_meshes.h
+++ b/scene/resources/3d/primitive_meshes.h
@@ -67,6 +67,9 @@ protected:
// assume primitive triangles as the type, correct for all but one and it will change this :)
Mesh::PrimitiveType primitive_type = Mesh::PRIMITIVE_TRIANGLES;
+ // Copy of our texel_size project setting.
+ float texel_size = 0.2;
+
static void _bind_methods();
virtual void _create_mesh_array(Array &p_arr) const {}
@@ -76,6 +79,8 @@ protected:
float get_lightmap_texel_size() const;
virtual void _update_lightmap_size(){};
+ void _on_settings_changed();
+
public:
virtual int get_surface_count() const override;
virtual int surface_get_array_len(int p_idx) const override;