Blender Git Commit Log

Git Commits -> Revision 5de109c

Revision 5de109c by Campbell Barton (master)
December 16, 2021, 00:41 (GMT)
Remove G.relbase_valid

In almost all cases there is no difference between `G.relbase_valid`
and checking `G.main->filepath` isn't an empty string.

In many places a non-empty string is already being used instead of
`G.relbase_valid`.

The only situation where this was needed was when saving from
`wm_file_write` where they temporarily became out of sync.
This has been replaced by adding a new member to `BlendFileWriteParams`
to account for saving an unsaved file for the first time.

Reviewed By: brecht

Ref D13564

Commit Details:

Full Hash: 5de109cc2d220ca3bd731216b9cd521269ad663e
Parent Commit: 4b12f52
Lines Changed: +87, -63

17 Modified Paths:

/source/blender/blenkernel/BKE_global.h (+0, -3) (Diff)
/source/blender/blenkernel/BKE_main.h (+1, -0) (Diff)
/source/blender/blenkernel/intern/image.c (+2, -1) (Diff)
/source/blender/blenkernel/intern/modifier.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+15, -7) (Diff)
/source/blender/blenloader/BLO_writefile.h (+5, -0) (Diff)
/source/blender/blenloader/intern/writefile.c (+6, -5) (Diff)
/source/blender/editors/screen/screendump.c (+3, -2) (Diff)
/source/blender/editors/space_file/file_ops.c (+3, -2) (Diff)
/source/blender/editors/space_info/info_ops.c (+6, -4) (Diff)
/source/blender/editors/util/ed_util.c (+4, -3) (Diff)
/source/blender/makesrna/intern/rna_main.c (+3, -2) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+27, -26) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+3, -2) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+3, -2) (Diff)
/source/creator/creator.c (+3, -1) (Diff)
/source/creator/creator_args.c (+0, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021