Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDalai Felinto <dfelinto@gmail.com>2010-06-16 12:29:40 +0400
committerDalai Felinto <dfelinto@gmail.com>2010-06-16 12:29:40 +0400
commit6a70a6bee2803290c42821847597f43a0e084938 (patch)
treefa951c32753bc0805fc4aff0f4f28ab5db7e9fef /source/blender/editors/space_logic/logic_ops.c
parentbc8e0c0f932f4d6ce2cd49029498c1965ee46a67 (diff)
Logic UI: partial implementation of state per controller
Adding two rna properties: state and state_number For scripting "state_number" (integer) makes more sense while "state" (boolean/array) may be needed for the UI. So far the UI is only showing the state number (using Label). Still have to decide how is the better way to "change the state". If we don't need "state" (as boolean) for the UI, we can have only the integer one and rename it to "state". + some cosmetic changes (renamed ob "states" to "visible states") ps.: 2 goals == 2 commits... let's see if I can keep that ratio until the middle of July ...
Diffstat (limited to 'source/blender/editors/space_logic/logic_ops.c')
-rw-r--r--source/blender/editors/space_logic/logic_ops.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/editors/space_logic/logic_ops.c b/source/blender/editors/space_logic/logic_ops.c
index 632331459cb..72697bfa8eb 100644
--- a/source/blender/editors/space_logic/logic_ops.c
+++ b/source/blender/editors/space_logic/logic_ops.c
@@ -484,7 +484,6 @@ static int actuator_add_exec(bContext *C, wmOperator *op)
PropertyRNA *prop;
const char *act_name;
char name[32];
- //XXX RNA_string_get is not using maxlen, it's using UserPreferencesFilePaths_python_scripts_directory_get instead (what limits the string copy to 160 chars in this case and CRASHES Blender).
int type= RNA_enum_get(op->ptr, "type");
act= new_actuator(type);