Blender Git Loki

Kaikki Blender Git kommitit.

Page: 3489 / 8462

January 30, 2018, 06:04 (GMT)
GP Add Primitives: Attempted fix for double-clicking on the toolbar button

Check for what type of mouse-press it was, instead of just assuming
that the clicks are what we think they are.

Note: If things still go wrong, there's also now a debug-print there
(debug-mode only) to help track things down.
January 30, 2018, 06:04 (GMT)
Cleanup: Streamline logic here - just check once, not twice
January 30, 2018, 06:04 (GMT)
GP Add Primitive Ops: Remove the "avoid fast double clicks" event hack

This was making the operator unnecessarily clumsy to use, especially
for anyone used to the way that drawing tools everywhere else work.

Old workflow (with the hack):
1) Click Rectangle/Circle to start the operator
2) Click (Press & Release) in the 3D view to start drawing the shape
3) Click again (Press & Release) to stop drawing
(4) Click again, realising that you forgot to release the mouse in step 2
(provided you realised why it "wasn't working")

New workflow (more in line with standard workflows):
1) Click Rectangle/Circle to start the operator
2) Press and drag in the 3D view to start drawing the shape
3) Release to stop drawing
January 30, 2018, 06:04 (GMT)
GP Add Primitives: Allow operator to work in Edit Mode too

It didn't really make sense why this was restricted to Draw mode only.
In particular, there are 2 good arguments for allowing it in editmode too:
1) In many ways, it's more similar to a Copy/Paste or Duplicate
operation in that it just dumps a bunch of stroke geometry
into the scene without you having to draw anything. We allow those,
so why not this.

2) Users are used to being able to go into Edit Mode and add a primitive
shape into the datablock to begin editing it. For consistency with
other modes, and also to prevent the "Creation" tab looking stupid
and redundant in EditMode, let's enable this.

Note:
* Sculpt/Weight Paint modes do not have this enabled for now. In those
modes, users are less likely to be concerned with adding geometry,
and more with modifying the existing geometry.
January 30, 2018, 06:04 (GMT)
Cleanup: Use M_PI instead of converting from degrees to radians

Note: While the center/radius calcs may benefit from using the
BLI_math funcs, the current implementation is more direct.
January 30, 2018, 06:04 (GMT)
GP Add Primitives: De-duplicate code

Most of the logic in gp_primitive_rectangle() and gp_primitive_circle()
was duplicated, and responsible for performing space-conversion stuff
on the 2d/screen-space coordinates.

This commit properly separates out these concerns, de-duplicating
code, and fixing a few other minor issues at the same time
(e.g. superfluous copies, and "edges" not getting initialised properly)
January 30, 2018, 06:04 (GMT)
GP Add Primitives: Removed the requirement for an active layer

Previously, the add primitive operator (rectangle/circle) required
there to be an active layer present before it would allow you to draw
a new primitive. However, this reduced the usefulness of this tool
(especially if you intended to use these tools to roughly block out
the requried shapes first in a new/blank GP object).

There was no real reason for this limitation, so no, the operator will
create a new layer itself if necessary, just like the Draw operator
has done since day one!
January 30, 2018, 06:04 (GMT)
Cleanup: Remove redundant functions

These were just adding extra layers of abtraction/complexity
without serving any actual purpose.
January 30, 2018, 03:31 (GMT)
Fix T50630: Fluid fails on win32 w/ unicode paths

Allow overriding gzip open w/ elbeem.
Revision e83cbf4 by Campbell Barton (master)
January 30, 2018, 02:36 (GMT)
Fix crash drawing light probe
January 30, 2018, 02:15 (GMT)
Fix light probe callbacks

Even though this wasn't crashing here, the arg types were wrong.
January 29, 2018, 22:24 (GMT)
Merge branch 'blender2.8' into topbar
January 29, 2018, 22:11 (GMT)
Rename "Chessboard" to "Checker Board"
January 29, 2018, 21:27 (GMT)
DRW / Render: Make render result show when using final render with eevee.
January 29, 2018, 21:00 (GMT)
Eevee: Remove unused variable.
January 29, 2018, 21:00 (GMT)
Eevee: Add Z pass render result.
January 29, 2018, 21:00 (GMT)
Eevee: Display render button in render panel
January 29, 2018, 21:00 (GMT)
Eevee: Add support for TAA/SuperSampling for final render.
January 29, 2018, 21:00 (GMT)
Eevee: Add new "render samples" properties.
January 29, 2018, 21:00 (GMT)
Eevee: Initial Final Render support.

TAA / multiple samples is not working at the moment.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021