From 6f3dfe81c0ff9d998528df7cc4bf94965270ed10 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Jan 2010 19:21:15 +0000 Subject: [PATCH] missed some files last commit. --- release/scripts/modules/bpy/utils.py | 4 ++-- source/blender/makesrna/intern/rna_scene.c | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/release/scripts/modules/bpy/utils.py b/release/scripts/modules/bpy/utils.py index 55116281d0a..383d2be0780 100644 --- a/release/scripts/modules/bpy/utils.py +++ b/release/scripts/modules/bpy/utils.py @@ -60,8 +60,8 @@ def load_scripts(reload_scripts=False, refresh_scripts=False): if reload_scripts: # reload modules that may not be directly included - for type_class_name in dir(types): - type_class = getattr(types, type_class_name) + for type_class_name in dir(_bpy.types): + type_class = getattr(_bpy.types, type_class_name) module_name = getattr(type_class, "__module__", "") if module_name and module_name != "bpy.types": # hard coded for C types diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c index cffe08d9328..a1e1559fb13 100644 --- a/source/blender/makesrna/intern/rna_scene.c +++ b/source/blender/makesrna/intern/rna_scene.c @@ -49,6 +49,7 @@ #include "WM_types.h" +#include "BLI_threads.h" EnumPropertyItem snap_target_items[] = { {SCE_SNAP_TARGET_CLOSEST, "CLOSEST", 0, "Closest", "Snap closest point onto target."},