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:
authorCampbell Barton <ideasman42@gmail.com>2013-04-17 08:53:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-17 08:53:23 +0400
commit8ee1de2de3418ce66dde97c0aedbacc8a23d1698 (patch)
tree7e48a57929de71ac02a709b37198cf5b425210c3 /source/blender/blenkernel/intern/depsgraph.c
parent7abc2243b607e23b2daddfc41611a9054318d037 (diff)
text editor reload no-longer resets scroll & cursor - annoying when making tweaks to UI scripts.
also restrict freestyle hack to WITH_FREESTYLE define.
Diffstat (limited to 'source/blender/blenkernel/intern/depsgraph.c')
-rw-r--r--source/blender/blenkernel/intern/depsgraph.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/depsgraph.c b/source/blender/blenkernel/intern/depsgraph.c
index 0a4a15cca09..1bae4ec68cc 100644
--- a/source/blender/blenkernel/intern/depsgraph.c
+++ b/source/blender/blenkernel/intern/depsgraph.c
@@ -2341,8 +2341,13 @@ void DAG_ids_check_recalc(Main *bmain, Scene *scene, int time)
/* we tag based on first ID type character to avoid
* looping over all ID's in case there are no tags */
- /* XXX very weak... added check for '27' to ignore freestyle added objects */
- if (id && id->name[2] > 27 && bmain->id_tag_update[id->name[0]]) {
+ if (id &&
+#ifdef WITH_FREESTYLE
+ /* XXX very weak... added check for '27' to ignore freestyle added objects */
+ id->name[2] > 27 &&
+#endif
+ bmain->id_tag_update[id->name[0]])
+ {
updated = 1;
break;
}