Fix T62631: Cloth vertex mass capped to a very low number on scaled scenes.

Removed the weight limit and made the setting more clear in what it actually does.
IE, it controlls the weight of the vertices of the cloth mesh

Reviewed By: Brecht

Differential Revision: http://developer.blender.org/D5450
This commit is contained in:
Sebastian Parborg 2019-11-21 12:28:39 +01:00
parent f1518d0f28
commit d98d4fce93
Notes: blender-bot 2023-02-14 08:59:10 +01:00
Referenced by issue #62631, Cloth simulation machine units scale is off.. it have to be 10 times smaller
2 changed files with 3 additions and 3 deletions

View File

@ -92,7 +92,7 @@ class PHYSICS_PT_cloth_physical_properties(PhysicButtonsPanel, Panel):
flow = layout.grid_flow(row_major=False, columns=0, even_columns=True, even_rows=False, align=True)
col = flow.column()
col.prop(cloth, "mass", text="Mass")
col.prop(cloth, "mass", text="Vertex Mass")
col = flow.column()
col.prop(cloth, "air_damping", text="Air Viscosity")
col = flow.column()

View File

@ -533,8 +533,8 @@ static void rna_def_cloth_sim_settings(BlenderRNA *brna)
/* mass */
prop = RNA_def_property(srna, "mass", PROP_FLOAT, PROP_UNIT_MASS);
RNA_def_property_range(prop, 0.0f, 10.0f);
RNA_def_property_ui_text(prop, "Mass", "Mass of cloth material");
RNA_def_property_range(prop, 0.0f, FLT_MAX);
RNA_def_property_ui_text(prop, "Vertex Mass", "The mass of each vertex on the cloth material");
RNA_def_property_update(prop, 0, "rna_cloth_update");
prop = RNA_def_property(srna, "vertex_group_mass", PROP_STRING, PROP_NONE);