WIP: GPv3: Select Circle operator #108815
No reviewers
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#108815
Loading…
Reference in New Issue
No description provided.
Delete Branch "(deleted):gpv3-select-circle"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
modification requested on #108662 obedit_circle_select and creation of function grease_pensil_circle_select as well as creation of case OB_GREASE_PENSIL.
gpv3-select-circleto GPv3: Select Circle operatorwhat should i change
GPv3: Select Circle operatorto WIP: GPv3: Select Circle operatorWIP: GPv3: Select Circle operatorto GPv3: Select Circle operatorclang-format
. The formatting of the code is not right. See https://wiki.blender.org/wiki/Tools/ClangFormat@ -4028,6 +4029,32 @@ static bool do_pose_box_select(bContext *C,
return changed_multi;
}
static bool do_grease_pencil_box_select(ViewContext *vc, const rcti *rect, const eSelectOp sel_op)
This function should be removed. It looks like you might also need to merge with
main
.@ -4113,6 +4140,10 @@ static int view3d_box_select_exec(bContext *C, wmOperator *op)
}
break;
}
case OB_GREASE_PENCIL: {
Same comment as above.
@ -4839,1 +4871,4 @@
* Callbacks for select circle in greasce pensil mode
*/
static bool grease_pensil_circle_select(ViewContext *vc,
This function doesn't look right. First, it should be named
grease_pencil_circle_select
.Second, the logic in the function is not right, it should be similar to the logic inside
do_grease_pencil_box_select
.@ -4870,6 +4924,17 @@ static bool obedit_circle_select(bContext *C,
case OB_MBALL:
changed = mball_circle_select(vc, sel_op, mval, rad);
break;
case OB_GREASE_PENSIL:{
OB_GREASE_PENSIL
->OB_GREASE_PENCIL
@ -4871,2 +4925,4 @@
changed = mball_circle_select(vc, sel_op, mval, rad);
break;
case OB_GREASE_PENSIL:{
GreasePencil &grease_pencil = *static_cast<GreasePencil *>(vc->obedit->data);
There should just be a call to
grease_pencil_circle_select
here.I just have a problem because you marked that you have to do like do_grease_pensil_select_box and it is even you who added this function and now you have to delete it
Have you been able to compile and build blender by now?
There are still syntax errors in here.
@ -4027,6 +4028,28 @@ static bool do_pose_box_select(bContext *C,
return changed_multi;
}
using namespace blender;
This looks like some copy-paste error, these added lines should be removed.
@ -4871,2 +4920,4 @@
changed = mball_circle_select(vc, sel_op, mval, rad);
break;
case OB_GREASE_PENCIL:{
static int grease_pencil_circle_select;
Here you need to call the function you defined. Like so:
@ -4895,3 +4948,3 @@
BLI_assert(0);
break;
}
}
Remove added space here.
Again, this should not happen if you use
make format
.@ -4899,3 +4952,1 @@
if (changed) {
DEG_id_tag_update(static_cast<ID *>(vc->obact->data), ID_RECALC_SELECT);
WM_main_add_notifier(NC_GEOM | ND_SELECT, vc->obact->data);
if (changed) {
There shouldn't be any changes here, please undo them.
I made the changes requested however as I solved the git syntax problem to consider that I had changed all the code and therefore to delete all the code in red and add the code with modification in green
I managed to compile the file
GPv3: Select Circle operatorto WIP: GPv3: Select Circle operator@filedescriptor I fixed every problem but I'm still trying to compile except it still won't open files with .h and .hh extensions and I'm having the problem with all blender files. I have tried telling it the file paths in different ways but nothing works
Have you use IDE or something else with unicode?
I use visual studio code and visual studio community
@mod_moder and @filedescriptor was it necessary to remove the do_grease_pencil_box_select function from the file.
And I think certian of #108662 could be validated no? And is it grease_pencil_circle_select fontion is good or no
WIP: GPv3: Select Circle operatorto WIP: GPv3: Select Circle operatorPull request closed