forcefield_toggle_exec() doesn't always enable force field #40080
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
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-addons#40080
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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?
System Information
Ubuntu 14.10 on a Gateway MP6954
Blender Version
Broken: 2.69 (and 2.70a)
When called from Python, forcefield_toggle_exec() doesn't always enable a force field, although the problem doesn't seem to manifest itself from the GUI.
Examining source/blender/editors/object/object_edit.c we find this function:
static int forcefield_toggle_exec(bContext *C, wmOperator *UNUSED(op))
{
}
If ob->pd is NULL, then object_add_collision_fields will add a field of type PFIELD_FORCE. ob->pd->forcefield will be non-zero, and will immediately set to zero.
This is probably not the desired behavior, and the fix is obvious.
Changed status to: 'Open'
Added subscriber: @BrentBaccala
This issue was referenced by blender/blender-addons-contrib@cd60c18be1
This issue was referenced by blender/blender@cd60c18be1
Changed status from 'Open' to: 'Resolved'
Closed by commit blender/blender@cd60c18be1.