Commit Graph

67074 Commits

Author SHA1 Message Date
be1b32e4e4 Fix T59884: Rigidbody Calculate Mass Sets Mass to 0
rigidbody_get_mesh() needs an evaluated object

Reviewers: sergey, brecht

Maniphest Tasks: T59884

Differential Revision: https://developer.blender.org/D4125
2018-12-27 15:07:20 +01:00
f1bf604804 Fix T59389: Solidify Modifier does not work with 'beveled' Curve objects.
Curve modifier eval code was actually doing nothing to ensure we passed
mesh with valid normals when required by the modifier.

This is a bit basic, rough code, but think it should cover all cases,
time will say...
2018-12-27 15:03:06 +01:00
Harley Acheson
4f98266cf6 UI: fix display of menu buttons without text and icon, and only a down arrow.
Differential Revision: https://developer.blender.org/D4123
2018-12-27 14:21:49 +01:00
Harley Acheson
e07b58537c UI: fix inconsistent icon button widths for popovers and enums.
Differential Revision: https://developer.blender.org/D4086
2018-12-27 12:49:35 +01:00
097b9019ce Fix T59799: texture paint mode crash for object with no materials. 2018-12-27 12:18:37 +01:00
6de8ff5796 Merge branch 'blender2.7' 2018-12-27 11:43:06 +01:00
81ab9ef968 Fix T56595: Hair Dynamics stop working after saving new file
The issue was caused by NaN valid of the average spring length being
stored in the file. This caused accumulation in the springs builder
to also deliver NaNs, which then caused solver itself to not do
anything.

Not sure why these values where never initialized prior to the
accumulation. Or even, why this runime data is stored in a DNA.

Some sanitizing is possible here, but needs to be done with care
to not disrupt Spring production.
2018-12-27 11:35:31 +01:00
5216dd5fce Merge branch 'blender2.7' 2018-12-27 10:53:02 +01:00
73c4643179 Cleanup: style 2018-12-27 13:14:37 +11:00
ff0285c476 Cleanup: use unsigned char (change previous commit) 2018-12-27 12:58:48 +11:00
40ba73e443 Cleanup: warnings 2018-12-27 12:52:33 +11:00
61cb1a81a8 Fix T57861: Object.ray_cast (and all RNA functions using "ob->runtime") broken in Blender 2.80
In fact, we can get valid depsgraph 99% of time from current context.

Still added extra optionnal depsgraph parameter just in case (and also
for future, when we might be handling much more temp depsgraphs).
2018-12-26 22:50:03 +01:00
60b930af3e GPU: Add another driver to the list of unused_fb_slot_workaround
I start to think that an automatic detection would be a better solution.
2018-12-25 14:36:51 -02:00
67dc68d104 Fix T59505: Knife tool cut preview line becomes black
The real reason for the problem is still unknown, but this solution adds less overhead than rBdafaa6f22881.
2018-12-25 14:36:50 -02:00
34a538ba1b Revert "Fix T59505: Knife tool cut preview line becomes black"
This reverts commit dafaa6f228.
2018-12-25 14:36:49 -02:00
94dfa6eaac GP: Remove duplicate code moving to single function 2018-12-25 11:10:05 +01:00
6d89337257 Fix/cleanup typos and such in UI messages (and some comments). 2018-12-24 15:03:49 +01:00
1ac311cedc Fix/cleanup another bunch of UI messages issues.
Also (mostly in comments): behaviour -> behavior (we use American English).
2018-12-24 12:32:43 +01:00
Jonathan Merritt
410142caff Fix T59722: stencil texture overlay not working on macOS. 2018-12-24 12:07:12 +01:00
28520e9652 Fix T59799: crash entering texture paint mode. 2018-12-24 09:28:45 +01:00
Julian Eisel
e5e885d0ec Fix floating panel (HUD) applying DPI incorrectly
ARegion.sizex/y should never have DPI factor applied. For regular panel
regions, DPI will be applied in region_rect_recursive already, causing
it to be applied twice when region size is set dynamically (= based on
content dimensions).
2018-12-23 22:42:01 +01:00
1158b9f73a Cleanup: First batch of UI messages fixes (typos, final points...).
Also contains some code typo fixes (mostly, adtaptative -> adaptive,
former is nearly innexistant in English, let's stick to simple valid
words ;) ).
2018-12-23 22:03:43 +01:00
Julian Eisel
064cbe9f3f Avoid creating & registering zero sized AZones
Would allocate memory for AZones and register them even if their
coordinates/bounding-box was all 0, meaning they're not visible and not
interactive.
2018-12-23 18:04:48 +01:00
6b13f10d40 GP: Small changes to help text 2018-12-23 16:54:20 +01:00
8746575d09 GP: Add Shift+F to define strength for primitives 2018-12-23 16:45:36 +01:00
a5cfeaba9e Fix missing update when deleting animation channels. 2018-12-23 17:32:21 +03:00
c3650e496b Fix missing update when toggling NLA solo mode. 2018-12-23 17:32:17 +03:00
02f083cdce BLI_math_rotation: properly name the quaternion power function.
"angular mult factor" is a completely unintelligible description
for a function that raises a unit quaternion to the scalar power.
2018-12-23 15:28:32 +03:00
1574b691f3 Fix T59782: Replace RMB by MMB in bottom help text 2018-12-23 10:16:57 +01:00
4c5e76025d GP: Update Suzanne 2D object
Review of the "D Suzanne to reduce number of points and small changes in shapes and colors.

Designed by Matias Mendiola and Daniel M. Lara
2018-12-22 10:56:04 +01:00
dafaa6f228 Fix T59505: Knife tool cut preview line becomes black
The root of the problem is that KnifeTool_OpData->colors was not init in
some cases. But the reason is unknown as it seems to be random and the
init function was always called.

So instead on init the color only once, we query the colors each time
we draw the knife points.
The overhead of this approach is negligeable.
2018-12-22 01:52:47 +01:00
a451d4abbc Fix T59644: FPS meter not showing in VSE
Issue caused probably by typo
2018-12-21 16:27:08 -08:00
f1f8859ad5 Cleanup: const cast 2018-12-22 08:14:41 +11:00
afa3aec45d Fix T59734: cyclic dependency with drivers on PoseBone.bbone_*.
Allow more flexible use of drivers on B-Bone properties by
connecting the dependencies to the actual operation node that
uses the values, instead of the whole component.
2018-12-21 23:10:16 +03:00
c79b849097 Fix T58327: Quick Favorites "Remove from Favorites" missing for added
Modifiers

Since user menu entries from SPACE_BUTS/SPACE_TOPBAR are also shown in
other Editors (SPACE_VIEW3D), also allow these entries to be removed
from Quick Favorites from these Editors.
Match and deduplicate logic from screen_user_menu_draw() and
ui_popup_context_menu_for_button().

Reviewers: campbellbarton, brecht

Maniphest Tasks: T58327

Differential Revision: https://developer.blender.org/D4112
2018-12-21 21:06:52 +01:00
e6e2f65585 Fix T59686: snap to adaptive grid occurs with a "delay"
In blender 2.8, when you zoom in, the adaptive subdivisions appear earlier than previous versions.
The grid still appears a little before the snap, but since it is very small I see no advantage in snap for this case.
2018-12-21 16:56:55 -02:00
e119868caa GP: Primitive: Changes from gp branch
F-key to change stroke brush size
Fix random bias for jitter
2018-12-21 18:48:57 +00:00
c93fd8438c Cleanup: fix more ATTR_FALLTHROUGH warnings.
Ref D3960.
2018-12-21 17:23:49 +01:00
2ca4f4f0cb Fix T59708: decimate modifier does not show face count before decimation. 2018-12-21 16:55:26 +01:00
d086c01645 Fix T59691: Crash when deleting data-block video or audio in a video editor 2018-12-21 16:54:17 +01:00
c16a5e772b Cleanup: Indentation 2018-12-21 16:54:17 +01:00
e56aa4ff0c Fix T59668: UV unwrap pinning bugs.
With multi object editing it creates the charts twice, which broke some
logic in the unwrapper.
2018-12-21 16:34:08 +01:00
bf168a05cd Workbench: Fix crash when using more than one metaball
Was caused by recent change in logic
2018-12-21 16:14:19 +01:00
a2a2fe1f22 Fix T59608: Curves invisible in object mode 2018-12-21 16:14:19 +01:00
0edd93effb Fix inconsistent/broken Cycles object visibility for instances.
Object visibility is now handled by the depsgraph iterator, but this API
was incomplete as it made no distinction for visibility of the object itself,
particles and generated instances.

The depsgraph iterator API now includes information about which part of the
object is visible, and this is used by Cycles to replace the old custom logic.
Cycles and EEVEE visibility should now be consistent, which unfortunately does
means some subtle compatibility breakage for both.

Fixes T58956, T58202, T59284.

Differential Revision: https://developer.blender.org/D4109
2018-12-21 16:05:48 +01:00
82c3fdd559 Fix T57907: Crash with hair when switching between object and edit mode
Was only visible after going in and out (with some strokes inbetween)
hair edit mode. The edit structure was never freed during Blender
session for some reason. Now we free those when leaving particle
edit mode.
2018-12-21 14:39:43 +01:00
494d13115c Fix T59687: Crash when rendering animation
The issue was caused by shape keys datablock from evaluated mesh
being added to the main database.

This commit makes it so shape keys are not copied for the mesh
used as cage.
2018-12-21 14:23:06 +01:00
c9df453ce7 Update for moving blender2.8 to master. 2018-12-21 12:15:21 +01:00
e72f989cf4 Update for moving master to blender2.7 branch. 2018-12-21 12:01:05 +01:00
1b674d70a3 GP: Cleanup weird thickness scale
This code used old factor, but now this only adds complexity and makes code hard to understand.
2018-12-21 11:27:24 +01:00