Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-11-16Cleanup: use BLI_listbase_*** prefix for count,sort,sort_rCampbell Barton
2014-11-11UI Refactor T41640Campbell Barton
Make the UI API more consistent and reduce confusion with some naming. mainly: - API function calls - enum values some internal static functions have been left for now
2014-10-10Fix T32209 quitting not saving latest data if you are in edit or sculpt mode onAntony Riakiotakis
quit.blend. This will use a slower file write if an object is in edit or sculpt mode. Autosaving will explicitly not be supported to keep it fast. Added a tooltip warning.
2014-10-08Ghost Context RefactorJason Wilkins
https://developer.blender.org/D643 Separates graphics context creation from window code in Ghost so that they can vary separately.
2014-09-16Fix T41818: Missing refresh on Undo for nodes (mask example)Sergey Sharybin
Added a special notifier now NC_WM|ND_UNDO in order to deal with such cases and now compositor/image will refresh when undo happens. There are much more ways to fail compo to update the resul, like undoing while it's not visible and so, but as mont29 said -- let's at least fix obvious crap in the workflow.
2014-08-26Move bUnit_getScaleUnit -> BKE_scene_unit_scaleCampbell Barton
unit.c intentionally doesn't include DNA or BKE headers (except its own)
2014-08-26Fix T41590: When scene scale is not 1.0, and units are "None," Blender ↵Bastien Montagne
assumes translations are in meters. Turned out there were several issues in handling of scale parameter by numinput. Fixed that by factorizing more some code in common with 'usual' numbuttons eval code (new `bUnit_getScaleUnit()` helper will return valid scaled value, depending on given system and type). Now, numinput behaves as expected - using default unit amended by scale in case no unit is given (i.e. entering '20' with a scale of 0.01 will give you 20cm, and '20cm' as well!).
2014-08-25Fix T41534: Bevel practically unusable interactively if set to percent ↵Bastien Montagne
amount type. Turned out to be a clean/fix up of modal bevel tool, percentage mode handling was broken, numinput handling was broken, etc. Also added a way to switch between bevel types (modes) with M key, and tweaked a bit numinput code to return early in case of 'char' event with ctrl modifier.
2014-08-03Fix T41284: The python ops log doesn't work.Bastien Montagne
2014-07-21Fix T40432: Scaling to zero with manipulate center points works precisely on ↵Bastien Montagne
second time Commented out the 'no zero' protection of scaling transforms for numinput. Issue is, once an axis has null scale, you can't regrow it from transform code (you have to directly edit the scale property). This is not ideal, but getting good behavior in this case is hairy... Yet, when using numinput, you type precise values, so if you want to set it to zero, set it to zero. User is assumed responsible, we should avoid too much 'invisible magic' when handling precise inputs. ;) Note: an idea for possible future feature would be to have an 'absolute' mode for numinput (allowing to type in real value, not factors).
2014-07-19Defines: replace ELEM3-16 with ELEM(...), that can take varargsCampbell Barton
2014-06-30Fix T40862: numinput transform did not take into account scale_length.Bastien Montagne
2014-06-27Fix T40691, dyntopo changes lost on save if sculpting on multipleAntony Riakiotakis
objects. Flush edits for all objects, not just the active one. Here we might want to disallow leaving an object on sculpt mode when selecting another, but this works, no need to enforce it.
2014-06-23Add ED_paint.h, split out ED_sculpt.hCampbell Barton
also rename some functions to match our convention
2014-06-18Code cleanup: replace 0 with OB_MODE_OBJECTCampbell Barton
2014-06-18Resolve memory leask with reports on initializationCampbell Barton
2014-06-17Support for building without PythonCampbell Barton
2014-06-14UI: Add support for popups to refresh their layput (D578)Campbell Barton
This is needed for popups to chance state once activated, currently it makes use of operators `check` callback, after values are modified, as the file selector does already.
2014-05-14Code cleanup: doxy commentsCampbell Barton
2014-05-14Fix T37796, Mesh lost after exiting sculpt mode and undoing.Antony Riakiotakis
Issue here is that upon entering sculpt mode, the mesh (and the object mode) is stored in global undo. Now made the code similar to edit mode, but since we don't really have any operator to push, this is just ignored for now. I have tried just disabling the sculpt toggle operator undo flag but this didn't work due to the nature recursive of the operator calls
2014-05-13Fix T39196, Dynamic Topology Undo Applied to Wrong MeshAntony Riakiotakis
Undoing nodes that do not belong to the current object will cause the saved bmesh log entry to be reverted instead. This entry can belong to another object though. This is easy to fix by enforcing name matching (this was borrowed by edit mode but can definitely be improved) between current object name and undo node name and deleting older entries. However there are complications. Deleting dyntopo entries in this way can leave a brush stroke as first dyntopo log entry. This can present issues if we attempt to delete that entry since it's deleted mesh elements may now have had their ids (which would still be valid at the time) cleaned up. This can result in crashing if we attempt to resculpt on the mesh. To fix this I have disabled releasing the deleted entries. This entanglement between bm_log and undo is quite volatile but I hope the system works better now. Also minor cleanup, fix unneeded check warning
2014-05-07Code cleanup: naming.Antony Riakiotakis
Prepend BKE_ to the functions moved in blenkernel for recent bug fix.
2014-05-07Fix issue discovered while investigating T39950:Antony Riakiotakis
Sculpt mode drawing fails after deleting a subsurf modifier in sculpt mode and undoing. This was quite difficult to spot. Main cause was that mesh data was not synchronized properly between undo and sculpt code because we generated a pbvh on derivedmesh invalidation without really refreshing the rest of the data. This could result in undo and drawing operating on different data. To solve this and avoid bad level calls I had to move quite some code around. Crazyspace is now moved to blenkernel, as did some sculpt calls that make sure sculpt data are properly refreshed.
2014-05-06Fix for uninitialized unit_use_radians variable with inset and bevelCampbell Barton
2014-04-30Code cleanup: remove unused headerCampbell Barton
2014-04-30Code cleanup: remove unused includesCampbell Barton
Opted to keep includes if they are used indirectly (even if removing is possible).
2014-04-15Fix T39234: popup menus behave poorly when they have not enough width for ↵Bastien Montagne
all their columns. Issue fixed by: * Not having constant width for all columns, but adapt each to its content's width; * Adapting undo's menu height to undo list length (so that we never have more than three columns). It is still possible to get issues in extreme cases (small screen, high DPI size, long op names everywhere...), but this should now be rare corner cases. Also fixes a minor glitch with undo menu (first column had one item less than the others...).
2014-04-01Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT defineCampbell Barton
2014-03-31Add normal option to ED_transvertsCampbell Barton
2014-03-31Code cleanup: remove unused members of TransVertCampbell Barton
2014-03-31Refactor: Add generic poll ED_transverts_pollCampbell Barton
2014-03-23Further tweaking to numinput - enhance 'Reset' behavior.Bastien Montagne
Ways how it was resetting its values (backspace) was far from satisfaying. Now, e.g. when scaling, it will reset at 1 (or whatever mouse-value it was before entering numinput), instead of some ugly 0.0 value. Implementation details: * Values passed to applyNumInput() are stored as default ones (val_org), if it is not EDITED. * applyNumInput() returns a boolean saying whether it actually set values or not. * When backspace hits its ultimate step (where it clears all EDITED flags and reset all default values), it sets a temp FAKE_EDITED flag that will be used to apply one last time values of numinput (so that default values actually get applied!). There are important things to note here for code using numinput: * Values passed to applyNumInput() should be valid and are stored as default ones (val_org), if it is not EDITED. * bool returned by applyNumInput should be used to decide whether to apply numinput-specific post-process to data. * *Once applyNumInput has been called*, hasNumInput returns a valid value to decide whether to use numinput as drawstr source or not. Those two steps have to be separated (so do not use a common call to hasNumInput() to do both in the same time!).
2014-03-21Possible fix for T39330 period key is ignored in transform operationsAntony Riakiotakis
Not 100% certain if this fixes, I will ask the user to verify through buildbot.
2014-03-21Fix T39312 Multipling two values in the Transform Tools Number Input not ↵Bastien Montagne
possible. There was actually a few bugs in new event handling of numinput :/ In case of 2.70 'a' release, this commit should be considered imho.
2014-03-17UI: Add theme color for viewport overlayCampbell Barton
Was using wire or black in many places, this color is used for cursor, camera guides, transform helper lines. So its possible to have a dark background with light overlay color. Patch D331 by Brita, with some edits.
2014-03-14Some corrections to previous commit. Undo stack could return 0 or returnAntony Riakiotakis
global undo even if not set in preferences.
2014-03-14Fix T39156 part 2: Add support for image paint operations in undoAntony Riakiotakis
history operator (Ctrl + Alt + Z). This will only show paint operations now while in an image paint mode. The caveat is that user can delete previous paint operations too (even on images not on the canvas currently) so it needs some care. This is consistent with regular undo behaviour though. Sculpting also suffers from lack of Undo history support, this will be added in a separate commit.
2014-03-12Mesh API: rename 'octree' to 'spatial' since internally its using kdtreeCampbell Barton
2014-02-28Crazyspace: calculate normal around a (0,0,0)Campbell Barton
instead of creating a new triangle in the models space and using that.
2014-02-28Fix Crazyspace with proportional editingCampbell Barton
2014-02-27Hopefully definitively fix the "enter the advanced numinput mode" issue.Bastien Montagne
Hack around event code and check against ascii code, this way keyboards with "complex" access to '=' and '*' are still able to toggle numinput modes.
2014-02-27Fix T38858: Crazy spaces was unpredictable with co-linear edgesCampbell Barton
2014-02-22Followup for numinput: activate numinput when hitting pad* or =, this is the ↵Bastien Montagne
expected behavior from users!
2014-02-22Fix T38743: Modal input feature appears to be missing from 2.70 test buildsBastien Montagne
Add 'pad *' in addition to '=' to toggle basic/advanced numinput modes.
2014-02-20Transform: revert to 2.69 numeric input behavior by defaultBastien Montagne
This allows to get the same "quickies" as in previous (2.69) code, (XYZ, -/, etc.), yet keeping nice non-conflicting new stuff like cursor navigation or copy/paste. You can switch to full mode hitting '=', and back to simple mode hitting 'ctrl ='.
2014-02-15UI: fix for glitch where active button became inactive on undoCampbell Barton
2014-02-03Fix T38424: modal number input ctrl - did not work, only ctrl numpad -.Brecht Van Lommel
Since there isn't always a numpad available this should work.
2014-01-27Code cleanup: use booleans where appropriateCampbell Barton
2014-01-20Code Cleanup: tabs/spaces, no need to call CTX_data_edit_object twiceCampbell Barton
2014-01-20Fix T37967: autosave does not save dynamic topology edits while in sculpt mode.Brecht Van Lommel