diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-06-02 21:52:06 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2013-06-02 21:52:06 +0400 |
commit | d8c2709414ec3b25c2bdaeea57eb26c2ff91f977 (patch) | |
tree | 590b4a6151a11ad2618a834aea2dfc4eafe49761 /release | |
parent | 5506ab080d1f03acd9e0e09a43b244b2ccece544 (diff) |
Better API design for making text datablocks after loading.
An optional 'internal' argument was added to the bpy.data.texts.load() operator.
The changes in revision 57153 were reverted, so that the is_in_memory and is_dirty
properties of text datablocks are not editable again.
In the C API layer, BKE_text_load_ex() was introduced to allow for optionally
making text datablocks internal after loading.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_operators/freestyle.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_operators/freestyle.py b/release/scripts/startup/bl_operators/freestyle.py index e9e636235ff..7aa6ae13b56 100644 --- a/release/scripts/startup/bl_operators/freestyle.py +++ b/release/scripts/startup/bl_operators/freestyle.py @@ -166,10 +166,6 @@ class SCENE_OT_freestyle_module_open(bpy.types.Operator): return {'RUNNING_MODAL'} def execute(self, context): - text = bpy.data.texts.load(self.filepath) - if self.make_internal: - text.is_in_memory = True - text.is_dirty = True - text.filepath = "" + text = bpy.data.texts.load(self.filepath, self.make_internal) self.freestyle_module.script = text return {'FINISHED'} |