[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [37156] branches/soc-2011-pepper/source/ blender/blenkernel/intern/action.c: Actions are no longer created with Fake Users

Joshua Leung aligorith at gmail.com
Sat Jun 4 04:23:19 CEST 2011


Revision: 37156
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=37156
Author:   aligorith
Date:     2011-06-04 02:23:17 +0000 (Sat, 04 Jun 2011)
Log Message:
-----------
Actions are no longer created with Fake Users

Due to overwhelming support from animators, Actions are no longer
created with fake users by default. If you're mainly creating action
libraries (the primary use case and argument for having this, mostly
used for creating a set of motions for games or perhaps to use in
NLA), you're really in the minority here.

For the most part, fake users just lead to heaps of "dangling" actions
in files which newbies (and even experienced users) may often be
unaware of. Since Fake Users are really more of an "opt-in" system
everywhere else (i.e. when creating Material Libraries), the same
should applied for Actions and creating Action Libraries.

Modified Paths:
--------------
    branches/soc-2011-pepper/source/blender/blenkernel/intern/action.c

Modified: branches/soc-2011-pepper/source/blender/blenkernel/intern/action.c
===================================================================
--- branches/soc-2011-pepper/source/blender/blenkernel/intern/action.c	2011-06-04 01:54:34 UTC (rev 37155)
+++ branches/soc-2011-pepper/source/blender/blenkernel/intern/action.c	2011-06-04 02:23:17 UTC (rev 37156)
@@ -85,8 +85,6 @@
 	bAction *act;
 	
 	act= alloc_libblock(&G.main->action, ID_AC, name);
-	act->id.flag |= LIB_FAKEUSER; // XXX this is nasty for new users... maybe we don't want this anymore
-	act->id.us++;
 	
 	return act;
 }	
@@ -200,9 +198,6 @@
 		}
 	}
 	
-	dst->id.flag |= LIB_FAKEUSER; // XXX this is nasty for new users... maybe we don't want this anymore
-	dst->id.us++;
-	
 	return dst;
 }
 




More information about the Bf-blender-cvs mailing list