[Bf-blender-cvs] [d68ff62f286] temp-gpencil-io: Remove comment about context region

Antonio Vazquez noreply at git.blender.org
Wed Mar 17 16:32:57 CET 2021


Commit: d68ff62f2867d81c8cbaafcb4e6e1dcbbf8987dd
Author: Antonio Vazquez
Date:   Wed Mar 17 16:26:27 2021 +0100
Branches: temp-gpencil-io
https://developer.blender.org/rBd68ff62f2867d81c8cbaafcb4e6e1dcbbf8987dd

Remove comment about context region

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

M	source/blender/editors/io/io_gpencil_export.c
M	source/blender/editors/io/io_gpencil_import.c

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

diff --git a/source/blender/editors/io/io_gpencil_export.c b/source/blender/editors/io/io_gpencil_export.c
index 8176c0dd3b9..e2db5e98a24 100644
--- a/source/blender/editors/io/io_gpencil_export.c
+++ b/source/blender/editors/io/io_gpencil_export.c
@@ -163,8 +163,6 @@ static int wm_gpencil_export_svg_exec(bContext *C, wmOperator *op)
     return OPERATOR_CANCELLED;
   }
 
-  /*For some reason the region cannot be retrieved from the context.
-   * If a better solution is found in the future, remove this function. */
   ARegion *region = get_invoke_region(C);
   if (region == NULL) {
     BKE_report(op->reports, RPT_ERROR, "Unable to find valid 3D View area");
@@ -337,8 +335,6 @@ static int wm_gpencil_export_pdf_exec(bContext *C, wmOperator *op)
     return OPERATOR_CANCELLED;
   }
 
-  /*For some reason the region cannot be retrieved from the context.
-   * If a better solution is found in the future, remove this function. */
   ARegion *region = get_invoke_region(C);
   if (region == NULL) {
     BKE_report(op->reports, RPT_ERROR, "Unable to find valid 3D View area");
diff --git a/source/blender/editors/io/io_gpencil_import.c b/source/blender/editors/io/io_gpencil_import.c
index 6a3dca57295..28a8fcde401 100644
--- a/source/blender/editors/io/io_gpencil_import.c
+++ b/source/blender/editors/io/io_gpencil_import.c
@@ -97,8 +97,6 @@ static int wm_gpencil_import_svg_exec(bContext *C, wmOperator *op)
     return OPERATOR_CANCELLED;
   }
 
-  /* For some reason the region cannot be retrieved from the context.
-   * If a better solution is found in the future, remove this function. */
   ARegion *region = get_invoke_region(C);
   if (region == NULL) {
     BKE_report(op->reports, RPT_ERROR, "Unable to find valid 3D View area");



More information about the Bf-blender-cvs mailing list