[Bf-blender-cvs] [775b937] soc-2014-fluid: RNA update operations corrected
Roman Pogribnyi
noreply at git.blender.org
Sun Aug 17 15:58:56 CEST 2014
Commit: 775b93767f1368d55fb12f953b146abdb67cb075
Author: Roman Pogribnyi
Date: Sat Aug 16 12:03:17 2014 +0200
Branches: soc-2014-fluid
https://developer.blender.org/rB775b93767f1368d55fb12f953b146abdb67cb075
RNA update operations corrected
===================================================================
M source/blender/makesrna/intern/rna_smoke.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_smoke.c b/source/blender/makesrna/intern/rna_smoke.c
index 8141d18..ce7da14 100644
--- a/source/blender/makesrna/intern/rna_smoke.c
+++ b/source/blender/makesrna/intern/rna_smoke.c
@@ -549,6 +549,7 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "use_manta", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", MOD_SMOKE_USE_MANTA);
RNA_def_property_ui_text(prop, "MantaFlow", "Use Mantaflow");
+ RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset");
prop = RNA_def_property(srna, "manta_solver_res", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "manta_solver_res");
@@ -562,21 +563,20 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna)
RNA_def_property_range(prop, -1, 250);
RNA_def_property_ui_range(prop, -1, 250, 1, -1);
RNA_def_property_ui_text(prop, "Current Simulation Frame", "-1, if not simulating");
- RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset");
-
+
prop = RNA_def_property(srna, "manta_start_frame", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "manta_start_frame");
RNA_def_property_range(prop, 0, 249);
RNA_def_property_ui_range(prop, 0, 249, 1, -1);
RNA_def_property_ui_text(prop, "Sim Start", "Frame from which to start simulation");
- RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset");
+ RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_resetCache");
prop = RNA_def_property(srna, "manta_end_frame", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "manta_end_frame");
RNA_def_property_range(prop, 1, 250);
RNA_def_property_ui_range(prop, 1, 250, 1, -1);
RNA_def_property_ui_text(prop, "Sim End", "Frame on which to end simulation");
- RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_reset");
+ RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_resetCache");
prop = RNA_def_property(srna, "manta_uvs", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, NULL, "manta_uvs_num");
@@ -588,6 +588,7 @@ static void rna_def_smoke_domain_settings(BlenderRNA *brna)
prop = RNA_def_property(srna, "manta_clamp_noise", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, NULL, "flags", MOD_SMOKE_NOISE_CLAMP);
RNA_def_property_ui_text(prop, "MantaFlow", "Use Mantaflow");
+ RNA_def_property_update(prop, NC_OBJECT | ND_MODIFIER, "rna_Smoke_resetCache");
prop = RNA_def_property(srna, "noise_clamp_neg", PROP_FLOAT, PROP_NONE);
RNA_def_property_float_sdna(prop, NULL, "noise_clamp_neg");
More information about the Bf-blender-cvs
mailing list