Commit Graph

6247 Commits

Author SHA1 Message Date
b40b8b4527 POVRAY: Fix unittest
Broken on rBAe44e5845ee2b
2020-08-03 09:35:20 +02:00
9970c24034 Collection Manager: Fix tooltip. Task: T69577
Fix Apply Phantom Mode tooltip to be clearer.
2020-08-02 00:36:50 -04:00
177ca9aeb9 Collection Manager: Fix T78985. Task: T69577
Refactored the functions get_move_selection and get_move_active
to be faster by using sets and looping through all the objects
instead of looping through the selected objects and using direct
object lookups, except for special cases where direct lookups are
actually faster.

Removed unneeded calls to get_move_selection and get_move_active.
2020-08-01 23:28:15 -04:00
e44e5845ee fix: Texture slots for world and materials
fix: Orthographic and perspective camera view angle thanks to Iari Marino
add: some numpy functions to export mesh possibly faster in next version
fix: parametric surfaces much accelerated and now actually usable (max gradient defaults were wrong from the time of their implementation in most pov literature. Thanks to William F. Pokorny for finding this out!
add: very basic "blurry reflection" hack for when using plain official POV
add: push of (as of yet badly formatted) feedback to interactive console
add: POV centric workspace, default when addon is left activated from previous session.
add: Sound signal support on finished render (set from addon preferences)
add: support for pov 3.8 and decremented in a few areas, waiting for the release
add: freestyle interface with convoluted workflow currently but preparing for next release.
fix: commented out Charset feature because POV 3.8 auto detects encoding
fix: a few dot notation look ups aliased and removed
fix: restored some more removed properties from 2.79 ( a few remain to do)
fix: texture mapped specular max value increased
fix: faster defaults for radiosity
fix: many default texture influences switched to 1 because boolean enabling is required anyway so 0 was a bad default
fix: some icons were missing since 2.8
fix: some formatting improvement was started
2020-08-02 00:07:39 +02:00
120f9d548a Merge branch 'blender-v2.90-release' into master 2020-08-01 17:29:11 +10:00
8034c621fa Merge branch 'blender-v2.90-release' into master 2020-08-01 17:28:48 +10:00
7da2a313f9 Fix T79438: Export UV Layout doesn't respect UVs alpha 2020-08-01 17:22:10 +10:00
666379fe7c Measureit: Fix unreported missing scene scale in arcs
The scale of the scene was not applied to the arcs. This fix is related to D8418, but with minor changes.
2020-07-31 10:02:07 +02:00
2f73d67f25 BlenderKit: fix several issues caused by context.copy()
now creating simple context everywhere instead of the context.copy() which actually:
- could not work if other addons were creating any custom subclasses on context
- managed to crash blender in my tests.
2020-07-30 11:27:57 +02:00
5cad98dce5 BlenderKit: fix appending
-this was broken due to API changes. Also no need for so much magic now since the default append just works well.
-fix a bug in previous commit (asset update)

(cherry picked from commit 3bdb5f41ae)
2020-07-29 22:22:45 +02:00
fb3d2715ce BlenderKit: fix data update
-older fines could act as broken

(cherry picked from commit e1dae55cca)
2020-07-29 22:18:39 +02:00
06181ee994 BlenderKit: Rating refactorings
This mainly paves a way for removing the old and clumsy bgl UI and enable faster rating for users.
-Rating Ui is now more responsive -it can be dragged over the stars widget.
-fast rating operator (f shortcut over assetbar)
-wip on new ratings panel(disabled by now)
-if author didn't provide his webpage, the link now leads to his profile on the BlenderKit site.
-upload was partially broken thanks to a small bug
-perpendicular snap - This limits angled snapping in a reasonable way, should help when placing foliage or items on sloped ceilings e.t.c.
-removed the first_run property, it's replaced with a poput that informs the user about connecting to the internet.

(cherry picked from commit 8f6903bc92)
2020-07-29 22:17:27 +02:00
66bd6dea71 BlenderKit: on-registration popup
This popup informs the user that BlenderKit connects to the internet directly after registration, and asks for consent with it and also performs first search.

(cherry picked from commit 00fefe2d14)
2020-07-29 22:17:10 +02:00
a3a1815d36 BlenderKit: fix login after token refresh fails.
Now offers a popup to login on site, previously only reported about invalid token, which wasn't clear to many users.

(cherry picked from commit c52cfd99ff)
2020-07-29 22:16:14 +02:00
3bdb5f41ae BlenderKit: fix appending
-this was broken due to API changes. Also no need for so much magic now since the default append just works well.
-fix a bug in previous commit (asset update)
2020-07-29 20:12:36 +02:00
eaa9125cf7 Merge branch 'blender-v2.90-release' 2020-07-28 17:57:44 +03:00
c6a7bba3f0 Rigify: remove an extraneous 'self' reference. 2020-07-28 17:57:26 +03:00
e1dae55cca BlenderKit: fix data update
-older fines could act as broken
2020-07-28 15:31:44 +02:00
6227b46d92 Merge branch 'blender-v2.90-release' 2020-07-28 11:39:24 +02:00
f156a1248b Bone Selection Sets: Make all property definitions Library Overridable
Without this, the addon simply doesn't work on library overridden rigs, since all the addon's interface is grayed out with an error message saying the properties are not overridable.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D8403
2020-07-28 11:38:53 +02:00
64c9a3683a Merge branch 'blender-v2.90-release' 2020-07-27 16:00:14 -04:00
497f422df0 Community Themes: Update Deep Grey
@TheRedWaxPolice provided this update that makes checkbox outlines
slightly dimmer.
2020-07-27 15:47:45 -04:00
8f6903bc92 BlenderKit: Rating refactorings
This mainly paves a way for removing the old and clumsy bgl UI and enable faster rating for users.
-Rating Ui is now more responsive -it can be dragged over the stars widget.
-fast rating operator (f shortcut over assetbar)
-wip on new ratings panel(disabled by now)
-if author didn't provide his webpage, the link now leads to his profile on the BlenderKit site.
-upload was partially broken thanks to a small bug
-perpendicular snap - This limits angled snapping in a reasonable way, should help when placing foliage or items on sloped ceilings e.t.c.
-removed the first_run property, it's replaced with a poput that informs the user about connecting to the internet.
2020-07-27 13:00:24 +02:00
00fefe2d14 BlenderKit: on-registration popup
This popup informs the user that BlenderKit connects to the internet directly after registration, and asks for consent with it and also performs first search.
2020-07-27 13:00:24 +02:00
c52cfd99ff BlenderKit: fix login after token refresh fails.
Now offers a popup to login on site, previously only reported about invalid token, which wasn't clear to many users.
2020-07-27 13:00:24 +02:00
c0d9f77449 Merge branch 'blender-v2.90-release' 2020-07-24 08:13:13 +02:00
03e3ef7f71 glTF importer: fix regression for skinned mesh normals not being renormalized 2020-07-24 08:09:38 +02:00
d1a009898e Collection Manager: QCD Move Widget fixes. Task: T69577
Fix QCD Move Widget not accounting for the 3D View bounds when first called and not appearing at all when called from the menu if the mouse is outside the 3D View.
2020-07-23 23:20:52 -04:00
2c9bc1e642 Collection Manager: QCD Move Widget fixes. Task: T69577
Fix QCD Move Widget not accounting for the 3D View bounds when first called and not appearing at all when called from the menu if the mouse is outside the 3D View.
2020-07-23 23:15:35 -04:00
9033e424e6 Merge branch 'blender-v2.90-release' 2020-07-23 14:51:52 +04:00
089cfd12a5 PLY: show import/export status with cursor
Later I would like to show progress by percentage, but not yet sure on how to better calculate it and triger update.
2020-07-23 14:39:19 +04:00
799ee4aebb glTF: Bump master to 1.4.0 after blender-v2.90-release branch creation 2020-07-23 07:31:31 +02:00
25b00a0a52 VR Scene Inspection: Bump version number to 0.9
For the final 2.90 release this should go up to 1.0, but not doing that
yet as we may have to do some fixes still.
2020-07-22 14:11:56 +02:00
362200bfee VR Scene Inspection: Various fixes and cleanups for preview changes
Besides minor tweaks:
* Always use selected, not active landmark for editing operators
* Fix failure when trying to access non-existant scene camera or custom
  base pose camera
* More consistent naming and descriptions
2020-07-22 14:11:56 +02:00
fe21f93ae9 VR Scene-Inspection: Extend Landmarks feature set
* Enable custom poses for landmarks (so they don't require adding a new
  camera).
* New landmark operators, available in Sidebar menu:
** "Add VR Landmark from Selected Camera"
** "Update Custom Landmark" (updates landmark to match current VR viewer
   pose)
** "Cursor to VR Landmark"
** "Active Camera to Landmark"
** "New Camera from Landmark"
* "Show Landmarks" option, adding gizmos as landmark indicators to 3D
  Views.

This should make the landmarks more practical.

Patch by Sebastian Koenig, with some smaller edits.
Followup commits will do further edits.

Part of T71347.
2020-07-22 14:11:56 +02:00
294f97f033 Collection Manager: Small improvement. Task:T69577
Prevent the 'Expander' operators from being added to the undo stack
because they can't be undone properly and only add clutter.
2020-07-22 04:12:32 -04:00
cee175131c Collection Manager: Add Operator. Task: T69577
Add Apply Phantom Mode operator.
2020-07-22 04:05:26 -04:00
09133c5abd Collection Manager: Update QCD Renumbering. Task: T69577
Added a linear renumbering option.
Added a constrain to branch option.
Allowed all options to be combined with each other.
Updated tooltip.
2020-07-22 02:44:42 -04:00
711efc3e2c Collection Manager: Add Operator. Task: T69577
Adds a Remove Empty Collections operator in a new specials menu
in the main Collection Manager popup.

This operator has two modes:
Mode one only removes collections if they don't have subcollections
or objects.
Mode two removes all collections that don't contain objects.

Both of these modes are accessible via the new specials menu.
2020-07-22 02:28:41 -04:00
39b8dbb572 PLY: flush selection on import 2020-07-22 09:53:31 +04:00
85173fa526 PLY: binary export
Thanks to Adrian Vogelsgesang (@vogelsgesang) and his binary ply export
implementation proposal D4252.
I did not reuse any code from his patch, but it gave me a good starting point
as I had no idea how to work with binary data.

In this commit:
* Implement export to binary little-endian file format.
* Remove information about blend filename from exported file, it has no purpose.
* Binary is the default format from now on.

I cannot see any reason to implement big-endian option, if there is, please let me know.
Below you will find performance comparison between ASCII and binary formats.

Test geometry:
* Verts 379 000
* Faces 378 000

Export:
* ASCII (old) 8.0 sec
* ASCII 3.0 sec
* Binary 2.4 sec

Note: difference between old and new ASCII export is due to avoiding
unnecessary normal claculation when export normals is disabled.

Import:
ASCII 5.75 sec
Binary 4.9 sec

File sizes:
* ASCII 20.6 MB
* Binary 10.4 MB
2020-07-22 07:28:43 +04:00
dbb4c80f22 glTF: adding Scurest in contributor list 2020-07-21 21:24:54 +02:00
52f88967a6 glTF exporter: always export loop normals
Thanks scurest!
2020-07-21 21:20:06 +02:00
c7eda7cb49 glTF importer: add option to glue pieces of a mesh together
Thanks scurest!
2020-07-21 21:18:35 +02:00
9313b3a155 glTF exporter: refactoring: remove no more needed functions after 2.79 2020-07-21 20:30:30 +02:00
47ea656bdd glTF exporter: export curve/surface/text objects as meshes
Thanks scurest!
2020-07-21 20:28:43 +02:00
422c47c5f7 glTF exporter: use split normals when exporting morph targets
Thanks scurest!
2020-07-21 20:27:00 +02:00
bd8e1f3e57 glTF exporter: use mesh.loop_triangles
Thanks scurest!
2020-07-21 20:24:03 +02:00
bb4dc6f1da glTF importer: performance: rewrite importer using numpy
Thanks scurest!
2020-07-21 20:21:30 +02:00
3ea1673580 glTF exporter: performance: using numpy
Thanks scurest!
2020-07-21 20:19:01 +02:00