Animato:
authorJoshua Leung <aligorith@gmail.com>
Fri, 23 Jan 2009 02:59:21 +0000 (02:59 +0000)
committerJoshua Leung <aligorith@gmail.com>
Fri, 23 Jan 2009 02:59:21 +0000 (02:59 +0000)
* Removed a few excessive debug prints
* Fixed crash on loading "Frankie" from BBB due to missing check for Driver without a target

source/blender/blenkernel/intern/depsgraph.c
source/blender/makesrna/intern/rna_access.c

index 983a9bc9ac6d1b881bdc53e5c5a80a6ed2c6a2ab..4f083c4bf9b5f93c364d93a8d6c6e8a096b8e897 100644 (file)
@@ -346,7 +346,7 @@ static void dag_add_driver_relation(AnimData *adt, DagForest *dag, DagNode *node
                else if (driver->type == DRIVER_TYPE_ROTDIFF) {
                        // XXX rotational difference 
                }
-               else {
+               else if (driver->id) {
                        /* normal channel-drives-channel */
                        node1 = dag_get_node(dag, driver->id);  // XXX we assume that id is an object...
                        
index 18d2fd31400736130810e158c8bbcc44cbc2aa4c..ce896be58681f9528598610beaca2e9c1de6dc5a 100644 (file)
@@ -1469,17 +1469,14 @@ int RNA_path_resolve(PointerRNA *ptr, const char *path, PointerRNA *r_ptr, Prope
                                return 0;
 
                        len= strlen(token);
-                       printf("RNA path identifier strlen = %d \n", len);
-
+                       
                        /* check for "" to see if it is a string */
                        if(len >= 2 && token[0] == '"' && token[len-1] == '"') {
                                /* strip away "" */
                                token[len-1]= 0;
-                               printf("RNA path identifier - string %s \n", token+1);
                                RNA_property_collection_lookup_string(&curptr, prop, token+1, &nextptr);
                        }
                        else {
-                               printf("RNA path identifier - int %s \n", token);
                                /* otherwise do int lookup */
                                intkey= atoi(token);
                                RNA_property_collection_lookup_int(&curptr, prop, intkey, &nextptr);