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 <campbell@blender.org>2022-03-23 09:16:37 +0300
committerCampbell Barton <campbell@blender.org>2022-03-23 09:18:42 +0300
commit94b2d83421b2d1fceff2b49d8784afec80dc65e6 (patch)
tree802a40fdbe77026a5f7c5097d887c092a26a33d8 /source/blender/makesrna/intern/rna_userdef.c
parent56dba4df3c7b939a853139c09a2a4e71409e9680 (diff)
Cleanup: move documentation to headers, other minor corrections
Diffstat (limited to 'source/blender/makesrna/intern/rna_userdef.c')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 1a962981413..a02feb44aaa 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -208,7 +208,6 @@ static void rna_userdef_version_get(PointerRNA *ptr, int *value)
/** Mark the preferences as being changed so they are saved on exit. */
# define USERDEF_TAG_DIRTY rna_userdef_is_dirty_update_impl()
-/** Use single function so we can more easily break-point it. */
void rna_userdef_is_dirty_update_impl(void)
{
/* We can't use 'ptr->data' because this update function
@@ -219,14 +218,11 @@ void rna_userdef_is_dirty_update_impl(void)
}
}
-/**
- * Use as a fallback update handler,
- * never use 'ptr' unless its type is checked.
- */
void rna_userdef_is_dirty_update(Main *UNUSED(bmain),
Scene *UNUSED(scene),
PointerRNA *UNUSED(ptr))
{
+ /* WARNING: never use 'ptr' unless its type is checked. */
rna_userdef_is_dirty_update_impl();
}