diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-11-19 20:12:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-11-19 20:12:08 +0300 |
commit | e61c90e4162040f564e154da055995e2ed280fdf (patch) | |
tree | 70cfb3cde5608c03839acb460ddb6b53b57f39f9 /release/scripts/ui/space_console.py | |
parent | ac8ff25b2d6465e3ad2b79c359d74b4bab4985e4 (diff) |
operators were copying the properties from the rna operator into the class instance.
however this meant the invoke function could not modify properties for exec to use (unless it called exec directly after)
since the popup for eg would re-instance the python class each time.
now use the operator properties directly through rna without an automatic copy.
now an operator attribute is accessed like this...
self.path --> self.properties.path
Diffstat (limited to 'release/scripts/ui/space_console.py')
-rw-r--r-- | release/scripts/ui/space_console.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py index 2404b3b71c0..8aa4df7b16a 100644 --- a/release/scripts/ui/space_console.py +++ b/release/scripts/ui/space_console.py @@ -180,7 +180,7 @@ class ConsoleLanguage(bpy.types.Operator): sc = context.space_data # defailt to python - sc.language = self.language + sc.language = self.properties.language bpy.ops.console.banner() |