Blender Git Loki

Git Commits -> Revision 69ba3b9

Revision 69ba3b9 by Bastien Montagne (master)
July 19, 2019, 11:58 (GMT)
Fix new Text ID usercount handling in add/load cases.

Text datablocks should always have a 'single user' flag set, and they
usually do not have any user (since neither text editor itself, nor
Freestyle usage are text users - the second is odd btw...), the only one
am aware of is the script node (e.g. for OSL).

Add text case was simply not doing anything, so added.

Load text case was doing things in inversed logic (setting user count to
zero in BKE, then setting 'real user' flag in ED code). Made it the
other way around (BKE ID creation code should not care about usercount
usually, this is up to higher-level code to decide what to do
(operators, RNA...).

Note: tried to check all cases, but there might very well be some more
hidden bugs here...

Commit Details:

Full Hash: 69ba3b98e4dc84e40fcb623fcdbc7214361466e7
Parent Commit: 48418ec
Lines Changed: +10, -3

3 Modified Paths:

/source/blender/blenkernel/intern/text.c (+4, -1) (Diff)
/source/blender/editors/space_text/text_ops.c (+4, -2) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+2, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021