Search found 124 matches

by marioalexis
Thu Sep 29, 2022 2:54 pm
Forum: TechDraw
Topic: Crash when change SectionView plane location
Replies: 3
Views: 735

Re: Crash when change SectionView plane location

Yes, based on the stack trace, I also assumed that it is due to a desynchronization in the threads.
by marioalexis
Thu Sep 29, 2022 2:31 am
Forum: TechDraw
Topic: Crash when change SectionView plane location
Replies: 3
Views: 735

Crash when change SectionView plane location

Steps to reproduce: Double click to edit the SectionView. Scroll the QSpinBox up and down to change the Section plane location in the X direction in the range (5mm, 15mm) so that the section plane leaves the shape. Repeat the scrolling process (maybe several times). At some point the crash occurs. O...
by marioalexis
Wed Sep 21, 2022 10:11 pm
Forum: Assembly
Topic: asm3 spamming report window when dragging a Part to Assy [SOLVED]
Replies: 8
Views: 1407

Re: asm3 spamming report window when dragging a Part to Assy [SOLVED]

The error is due to a regression in the master branch.
This pull request fixes the error in FreeCAD-0.20: 7507.
And this in current master 7236
by marioalexis
Tue Sep 20, 2022 4:10 pm
Forum: Assembly
Topic: asm3 spamming report window when dragging a Part to Assy [SOLVED]
Replies: 8
Views: 1407

Re: asm3 spamming report window when dragging a Part to Assy

There are two pull request to fix this waiting to be merged in FreeCAD-0-20 and master, respectively
by marioalexis
Wed Aug 31, 2022 5:27 pm
Forum: Python scripting and macros
Topic: [Ticket #5975] Get reference to active task dialog
Replies: 14
Views: 3401

Re: [Ticket #5975] Get reference to active task dialog

openBrain wrote: Wed Aug 31, 2022 5:54 am

Code: Select all

return Py::new_reference_to(list);
The reference counting is ok. Py::Object already increments the count by default and the returned type must be Py::Object, not PyObject*, so no need to use Py::new_reference_to
by marioalexis
Wed Aug 31, 2022 3:16 am
Forum: Python scripting and macros
Topic: [Ticket #5975] Get reference to active task dialog
Replies: 14
Views: 3401

Re: [Ticket #5975] Get reference to active task dialog

ControlPy::activeDialog (or a new function, say, getActiveDialog ) can be modified to list the contents of the task dialog from this: Py::Object ControlPy::activeDialog(const Py::Tuple& args) if (!PyArg_ParseTuple(args.ptr(), "")) throw Py::Exception(); Gui::TaskView::TaskDialog* dlg ...
by marioalexis
Thu Aug 18, 2022 1:34 pm
Forum: Developers corner
Topic: [Tracking] Backport commits to 0.20 branch
Replies: 75
Views: 66069

Re: [Tracking] Backport commits to 0.20 branch

There is a regression reported on the assembly forum (specifically for assembly3) that is resolved by this pull request: https://github.com/FreeCAD/FreeCAD/pull/7236 The fix is embedded with other changes, so it might not be accepted. In that case, I can split the request and solve the specific regr...
by marioalexis
Thu Jul 28, 2022 12:59 am
Forum: Developers corner
Topic: Python class constants in C++
Replies: 3
Views: 639

Re: Python class constants in C++

The tp_dict member of the PyTypeObject struct can be set to a dictionary with the keys as name attributes and the values to the required enumeration (or anything else). But this must be done before executing the PyType_Ready function, which is currently executed inside InterpreterSingleton::addType ...
by marioalexis
Wed Jul 20, 2022 4:06 pm
Forum: Assembly
Topic: TypeError in recorded macro when adding to "parts"
Replies: 5
Views: 1212

Re: TypeError in recorded macro when adding to "parts"

The error was already reported here: https://forum.freecadweb.org/viewtopic.php?f=20&t=69777
Tomorrow I will send a PR that includes the correction of this regression.