RNA: warning fixes.

This commit is contained in:
Brecht Van Lommel
2010-01-12 19:47:31 +00:00
parent 6a0308aad3
commit 489ef9cff1

View File

@@ -1086,8 +1086,6 @@ int RNA_property_editable_index(PointerRNA *ptr, PropertyRNA *prop, int index)
int RNA_property_animateable(PointerRNA *ptr, PropertyRNA *prop)
{
int flag;
prop= rna_ensure_property(prop);
if(!(prop->flag & PROP_ANIMATEABLE))
@@ -2209,6 +2207,7 @@ int RNA_property_collection_raw_array(PointerRNA *ptr, PropertyRNA *prop, Proper
case PROP_RAW_INT: ((int*)raw.array)[a] = (int)var; break; \
case PROP_RAW_FLOAT: ((float*)raw.array)[a] = (float)var; break; \
case PROP_RAW_DOUBLE: ((double*)raw.array)[a] = (double)var; break; \
default: break; \
} \
}