[Bf-blender-cvs] [572c52d2a30] temp-sculpt-colors: temp-sculpt-colors: comment formatting

Joseph Eagar noreply at git.blender.org
Wed Mar 30 00:12:20 CEST 2022


Commit: 572c52d2a304cd333e25fcc76afd559f119980f9
Author: Joseph Eagar
Date:   Tue Mar 29 15:12:02 2022 -0700
Branches: temp-sculpt-colors
https://developer.blender.org/rB572c52d2a304cd333e25fcc76afd559f119980f9

temp-sculpt-colors: comment formatting

===================================================================

M	source/blender/blenkernel/BKE_attribute.h
M	source/blender/editors/sculpt_paint/sculpt_undo.c
M	source/blender/makesrna/intern/rna_attribute.c

===================================================================

diff --git a/source/blender/blenkernel/BKE_attribute.h b/source/blender/blenkernel/BKE_attribute.h
index bf383c8a82b..52bbb07f0ff 100644
--- a/source/blender/blenkernel/BKE_attribute.h
+++ b/source/blender/blenkernel/BKE_attribute.h
@@ -43,15 +43,15 @@ typedef enum AttributeDomainMask {
   ATTR_DOMAIN_MASK_ALL = (1 << 5) - 1
 } AttributeDomainMask;
 
-/* All domains that support color attributes */
+/* All domains that support color attributes. */
 #define ATTR_DOMAIN_MASK_COLOR \
   ((AttributeDomainMask)((ATTR_DOMAIN_MASK_POINT | ATTR_DOMAIN_MASK_CORNER)))
 
-/* Attributes */
+/* Attributes. */
 
 bool BKE_id_attributes_supported(struct ID *id);
 
-/**  Create a new attribute layer
+/**  Create a new attribute layer.
  */
 struct CustomDataLayer *BKE_id_attribute_new(
     struct ID *id, const char *name, int type, AttributeDomain domain, struct ReportList *reports);
diff --git a/source/blender/editors/sculpt_paint/sculpt_undo.c b/source/blender/editors/sculpt_paint/sculpt_undo.c
index fcdce9a59b1..b5973420f52 100644
--- a/source/blender/editors/sculpt_paint/sculpt_undo.c
+++ b/source/blender/editors/sculpt_paint/sculpt_undo.c
@@ -1563,7 +1563,7 @@ static void sculpt_undo_set_active_layer(struct bContext *C, SculptAttrRef *attr
   layer = BKE_id_attribute_find(&me->id, attr->name, attr->type, attr->domain);
 
   if (!layer) {
-    /* memfile undo killed the layer; re-create it */
+    /* Memfile undo killed the layer; re-create it. */
     CustomData *cdata = attr->domain == ATTR_DOMAIN_POINT ? &me->vdata : &me->ldata;
     int totelem = attr->domain == ATTR_DOMAIN_POINT ? me->totvert : me->totloop;
 
diff --git a/source/blender/makesrna/intern/rna_attribute.c b/source/blender/makesrna/intern/rna_attribute.c
index 7c7e15a5f0a..88529fd244a 100644
--- a/source/blender/makesrna/intern/rna_attribute.c
+++ b/source/blender/makesrna/intern/rna_attribute.c
@@ -266,7 +266,7 @@ static void rna_Attribute_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene),
 {
   ID *id = ptr->owner_id;
 
-  /* cheating way for importers to avoid slow updates */
+  /* Cheating way for importers to avoid slow updates. */
   if (id->us > 0) {
     DEG_id_tag_update(id, 0);
     WM_main_add_notifier(NC_GEOM | ND_DATA, id);
@@ -383,7 +383,7 @@ void rna_AttributeGroup_iterator_next(CollectionPropertyIterator *iter)
 
 PointerRNA rna_AttributeGroup_iterator_get(CollectionPropertyIterator *iter)
 {
-  /* refine to the proper type */
+  /* Refine to the proper type. */
   CustomDataLayer *layer = rna_iterator_array_get(iter);
   StructRNA *type = srna_by_custom_data_layer_type(layer->type);
   if (type == NULL) {
@@ -410,7 +410,7 @@ void rna_AttributeGroup_color_iterator_next(CollectionPropertyIterator *iter)
 
 PointerRNA rna_AttributeGroup_color_iterator_get(CollectionPropertyIterator *iter)
 {
-  /* refine to the proper type */
+  /* Refine to the proper type. */
   CustomDataLayer *layer = rna_iterator_array_get(iter);
   StructRNA *type = srna_by_custom_data_layer_type(layer->type);
   if (type == NULL) {
@@ -531,7 +531,7 @@ static void rna_AttributeGroup_update_active_color(Main *bmain, Scene *scene, Po
 {
   ID *id = ptr->owner_id;
 
-  /* cheating way for importers to avoid slow updates */
+  /* Cheating way for importers to avoid slow updates. */
   if (id->us > 0) {
     DEG_id_tag_update(id, 0);
     WM_main_add_notifier(NC_GEOM | ND_DATA, id);
@@ -552,7 +552,7 @@ static bool rna_Attribute_active_render_get(PointerRNA *ptr)
   }
 
   if (GS(id->name) != ID_ME) {
-    /* only meshes for now */
+    /* Only meshes for now. */
     return false;
   }
 
@@ -602,7 +602,7 @@ static void rna_Attribute_active_render_set(PointerRNA *ptr, bool value)
   }
 
   if (GS(id->name) != ID_ME) {
-    /* only meshes for now */
+    /* Only meshes for now. */
     return;
   }



More information about the Bf-blender-cvs mailing list