add missing imports to wm.py and remove "." from rna descriptions.

This commit is contained in:
Campbell Barton 2011-09-26 09:31:24 +00:00
parent f0cceedd7a
commit 0aa19de52f
2 changed files with 4 additions and 3 deletions

@ -1321,6 +1321,7 @@ class WM_OT_keyconfig_import(Operator):
) )
def execute(self, context): def execute(self, context):
import os
from os.path import basename from os.path import basename
import shutil import shutil
@ -1826,6 +1827,7 @@ class WM_OT_addon_remove(Operator):
@staticmethod @staticmethod
def path_from_addon(module): def path_from_addon(module):
import os
import addon_utils import addon_utils
for mod in addon_utils.modules(addon_utils.addons_fake_modules): for mod in addon_utils.modules(addon_utils.addons_fake_modules):

@ -2068,7 +2068,7 @@ static void rna_def_particle_settings(BlenderRNA *brna)
prop= RNA_def_property(srna, "courant_target", PROP_FLOAT, PROP_NONE); prop= RNA_def_property(srna, "courant_target", PROP_FLOAT, PROP_NONE);
RNA_def_property_range(prop, 0.01, 10); RNA_def_property_range(prop, 0.01, 10);
RNA_def_property_float_default(prop, 0.2); RNA_def_property_float_default(prop, 0.2);
RNA_def_property_ui_text(prop, "Adaptive Subframe Threshold", "The relative distance a particle can move before requiring more subframes (target Courant number). 0.1-0.3 is the recommended range."); RNA_def_property_ui_text(prop, "Adaptive Subframe Threshold", "The relative distance a particle can move before requiring more subframes (target Courant number). 0.1-0.3 is the recommended range");
RNA_def_property_update(prop, 0, "rna_Particle_reset"); RNA_def_property_update(prop, 0, "rna_Particle_reset");
prop= RNA_def_property(srna, "jitter_factor", PROP_FLOAT, PROP_NONE); prop= RNA_def_property(srna, "jitter_factor", PROP_FLOAT, PROP_NONE);
@ -2881,7 +2881,7 @@ static void rna_def_particle_system(BlenderRNA *brna)
* ParticleSettings.courant_target instead. */ * ParticleSettings.courant_target instead. */
prop= RNA_def_property(srna, "dt_frac", PROP_FLOAT, PROP_NONE); prop= RNA_def_property(srna, "dt_frac", PROP_FLOAT, PROP_NONE);
RNA_def_property_range(prop, 1.0f/101.0f, 1.0f); RNA_def_property_range(prop, 1.0f/101.0f, 1.0f);
RNA_def_property_ui_text(prop, "Timestep", "The current simulation time step size, as a fraction of a frame."); RNA_def_property_ui_text(prop, "Timestep", "The current simulation time step size, as a fraction of a frame");
RNA_def_property_clear_flag(prop, PROP_EDITABLE); RNA_def_property_clear_flag(prop, PROP_EDITABLE);
RNA_def_struct_path_func(srna, "rna_ParticleSystem_path"); RNA_def_struct_path_func(srna, "rna_ParticleSystem_path");
@ -2903,4 +2903,3 @@ void RNA_def_particle(BlenderRNA *brna)
} }
#endif #endif