blender.git
22 months agoHandle special categories soc-2017-package_manager
gandalf3 [Tue, 29 Aug 2017 13:30:31 +0000 (06:30 -0700)]
Handle special categories

22 months agofix utils
gandalf3 [Tue, 29 Aug 2017 13:11:47 +0000 (06:11 -0700)]
fix utils

22 months agodocumentation
gandalf3 [Tue, 29 Aug 2017 12:15:45 +0000 (05:15 -0700)]
documentation

22 months agopep8-ify bpkg/types.py
gandalf3 [Tue, 29 Aug 2017 12:12:39 +0000 (05:12 -0700)]
pep8-ify bpkg/types.py

22 months agoUse isinstance
gandalf3 [Tue, 29 Aug 2017 12:10:11 +0000 (05:10 -0700)]
Use isinstance

22 months agopep8-ify bpkg/subproc.py
gandalf3 [Tue, 29 Aug 2017 12:01:45 +0000 (05:01 -0700)]
pep8-ify bpkg/subproc.py

22 months agoUse typing.Optional
gandalf3 [Tue, 29 Aug 2017 11:59:11 +0000 (04:59 -0700)]
Use typing.Optional

22 months agoDocument non-none types
gandalf3 [Tue, 29 Aug 2017 11:51:13 +0000 (04:51 -0700)]
Document non-none types

22 months agoMore precise error messages
gandalf3 [Tue, 29 Aug 2017 11:45:14 +0000 (04:45 -0700)]
More precise error messages

22 months agoDocument reason for dict conversion
gandalf3 [Tue, 29 Aug 2017 11:39:08 +0000 (04:39 -0700)]
Document reason for dict conversion

22 months agoWrite own error message
gandalf3 [Tue, 29 Aug 2017 09:49:40 +0000 (02:49 -0700)]
Write own error message

22 months agoDisable uninstall buttons on addons installed outside user dir
gandalf3 [Tue, 29 Aug 2017 09:45:10 +0000 (02:45 -0700)]
Disable uninstall buttons on addons installed outside user dir

22 months agoRemove unneccesary None
gandalf3 [Tue, 29 Aug 2017 08:56:07 +0000 (01:56 -0700)]
Remove unneccesary None

22 months agoBuild list once
gandalf3 [Tue, 29 Aug 2017 08:54:54 +0000 (01:54 -0700)]
Build list once

22 months agoActually display progress
gandalf3 [Tue, 29 Aug 2017 08:44:09 +0000 (01:44 -0700)]
Actually display progress

22 months agopep8-ify bpkg/messages.py
gandalf3 [Tue, 29 Aug 2017 07:24:00 +0000 (00:24 -0700)]
pep8-ify bpkg/messages.py

22 months agoRemove unused message, make sure all errors inherit from SubprocError
gandalf3 [Tue, 29 Aug 2017 07:23:28 +0000 (00:23 -0700)]
Remove unused message, make sure all errors inherit from SubprocError

22 months agoClean up bpkg/display.py
gandalf3 [Tue, 29 Aug 2017 07:20:36 +0000 (00:20 -0700)]
Clean up bpkg/display.py

22 months agopep8-ify bpkg/actions.py
gandalf3 [Tue, 29 Aug 2017 07:17:10 +0000 (00:17 -0700)]
pep8-ify bpkg/actions.py

22 months agoRemove unneccesary parens
gandalf3 [Tue, 29 Aug 2017 07:09:43 +0000 (00:09 -0700)]
Remove unneccesary parens

22 months agoSplit code for installing zipped and unzipped packages into separate functions
gandalf3 [Tue, 29 Aug 2017 07:05:41 +0000 (00:05 -0700)]
Split code for installing zipped and unzipped packages into separate functions

22 months agoBreak exception chain
gandalf3 [Tue, 29 Aug 2017 06:50:47 +0000 (23:50 -0700)]
Break exception chain

22 months agoRemove old commented code
gandalf3 [Tue, 29 Aug 2017 06:43:36 +0000 (23:43 -0700)]
Remove old commented code

22 months agoWait until we've determined url is a real url to derive filenames from it
gandalf3 [Tue, 29 Aug 2017 06:41:54 +0000 (23:41 -0700)]
Wait until we've determined url is a real url to derive filenames from it

22 months agoMake sure classes tuple is only set when it should be
gandalf3 [Tue, 29 Aug 2017 06:16:52 +0000 (23:16 -0700)]
Make sure classes tuple is only set when it should be

22 months agoImprove docstring
gandalf3 [Tue, 29 Aug 2017 05:54:39 +0000 (22:54 -0700)]
Improve docstring

22 months agoImprove commentation
gandalf3 [Tue, 29 Aug 2017 05:51:55 +0000 (22:51 -0700)]
Improve commentation

22 months agoRemove old commented code
gandalf3 [Tue, 29 Aug 2017 05:50:21 +0000 (22:50 -0700)]
Remove old commented code

22 months agopep8-ify bl_operators/package.py
gandalf3 [Tue, 29 Aug 2017 05:46:30 +0000 (22:46 -0700)]
pep8-ify bl_operators/package.py

22 months agopep8-ify bpkg/__init__.py
gandalf3 [Tue, 29 Aug 2017 05:43:11 +0000 (22:43 -0700)]
pep8-ify bpkg/__init__.py

22 months agoRemove fold markers
gandalf3 [Tue, 29 Aug 2017 05:40:04 +0000 (22:40 -0700)]
Remove fold markers

22 months agoBring back sorting
gandalf3 [Tue, 29 Aug 2017 05:36:23 +0000 (22:36 -0700)]
Bring back sorting

22 months agoImprove documentation and remove extraneous function
gandalf3 [Tue, 29 Aug 2017 05:35:54 +0000 (22:35 -0700)]
Improve documentation and remove extraneous function

22 months agoPackage name is not allowed to be None, no need to check for it
gandalf3 [Tue, 29 Aug 2017 05:28:32 +0000 (22:28 -0700)]
Package name is not allowed to be None, no need to check for it

22 months agoRemove old OrderedDict
gandalf3 [Tue, 29 Aug 2017 05:25:01 +0000 (22:25 -0700)]
Remove old OrderedDict

22 months agoClarify TODO note
gandalf3 [Tue, 29 Aug 2017 05:23:28 +0000 (22:23 -0700)]
Clarify TODO note

22 months agoRemove old loggers, document refresh parameter
gandalf3 [Tue, 29 Aug 2017 05:20:24 +0000 (22:20 -0700)]
Remove old loggers, document refresh parameter

22 months agoMove enable/disable into Package class
gandalf3 [Tue, 29 Aug 2017 05:16:39 +0000 (22:16 -0700)]
Move enable/disable into Package class

22 months agoRemove old debug logging and excess whitespace
gandalf3 [Tue, 29 Aug 2017 05:03:30 +0000 (22:03 -0700)]
Remove old debug logging and excess whitespace

22 months agoShorten if, remove commented code
gandalf3 [Tue, 29 Aug 2017 04:59:32 +0000 (21:59 -0700)]
Shorten if, remove commented code

22 months agoRemove commented code
gandalf3 [Tue, 29 Aug 2017 04:56:41 +0000 (21:56 -0700)]
Remove commented code

22 months agoOverride _finish instead of cancel
gandalf3 [Tue, 29 Aug 2017 04:56:00 +0000 (21:56 -0700)]
Override _finish instead of cancel

22 months agosimplify if
gandalf3 [Tue, 29 Aug 2017 04:54:22 +0000 (21:54 -0700)]
simplify if

22 months agoSimplify package list refreshing
gandalf3 [Tue, 29 Aug 2017 04:49:16 +0000 (21:49 -0700)]
Simplify package list refreshing

Currently no need for caching system, just regenerate it when asked

22 months agoReplace hardcoded 10s with constant
gandalf3 [Tue, 29 Aug 2017 04:10:08 +0000 (21:10 -0700)]
Replace hardcoded 10s with constant

22 months agoRemove old abort method
gandalf3 [Tue, 29 Aug 2017 04:02:53 +0000 (21:02 -0700)]
Remove old abort method

22 months agoRemove fold markers
gandalf3 [Tue, 29 Aug 2017 04:00:42 +0000 (21:00 -0700)]
Remove fold markers

22 months agoUpdate comment
gandalf3 [Tue, 29 Aug 2017 03:59:13 +0000 (20:59 -0700)]
Update comment

22 months agoAdd explanation for multiprocessing context
gandalf3 [Tue, 29 Aug 2017 03:57:24 +0000 (20:57 -0700)]
Add explanation for multiprocessing context

22 months agoRemove commented code
gandalf3 [Tue, 29 Aug 2017 03:50:53 +0000 (20:50 -0700)]
Remove commented code

22 months agoFix update display, get rid of unnecessary ifs in filters
gandalf3 [Tue, 29 Aug 2017 01:35:10 +0000 (18:35 -0700)]
Fix update display, get rid of unnecessary ifs in filters

22 months agoFix a number of issues caused by new repository representation
gandalf3 [Tue, 29 Aug 2017 01:05:07 +0000 (18:05 -0700)]
Fix a number of issues caused by new repository representation

22 months agoremove print statement
gandalf3 [Mon, 28 Aug 2017 23:06:32 +0000 (16:06 -0700)]
remove print statement

22 months agoUse EnumProperty for repository list
gandalf3 [Mon, 28 Aug 2017 23:04:43 +0000 (16:04 -0700)]
Use EnumProperty for repository list

Make UIlist editable and move it to a dialog

22 months agoRevert accidentally committed partial change
gandalf3 [Mon, 28 Aug 2017 08:07:35 +0000 (01:07 -0700)]
Revert accidentally committed partial change

22 months agoShorten import
gandalf3 [Mon, 28 Aug 2017 05:22:34 +0000 (22:22 -0700)]
Shorten import

22 months agoRefactor Package class
gandalf3 [Mon, 28 Aug 2017 05:11:23 +0000 (22:11 -0700)]
Refactor Package class

* Use property decorator
* Display an error when encountering an incorrectly formatted bl_info
* General cleanup

22 months agoMove install/download code out of utils
gandalf3 [Sun, 27 Aug 2017 23:26:08 +0000 (16:26 -0700)]
Move install/download code out of utils

22 months agoUn-remove accidentally removed function
gandalf3 [Sun, 27 Aug 2017 21:48:45 +0000 (14:48 -0700)]
Un-remove accidentally removed function

22 months agoOnly show enable/disable operator for installed packages
gandalf3 [Sun, 27 Aug 2017 21:40:40 +0000 (14:40 -0700)]
Only show enable/disable operator for installed packages

22 months agoDon't rebuild package list every draw()
gandalf3 [Sun, 27 Aug 2017 21:36:06 +0000 (14:36 -0700)]
Don't rebuild package list every draw()

22 months agoRemove commented code and fix some stuff broken by de-addonification
gandalf3 [Sun, 27 Aug 2017 21:25:17 +0000 (14:25 -0700)]
Remove commented code and fix some stuff broken by de-addonification

22 months agoHide addons section
gandalf3 [Sun, 27 Aug 2017 00:18:23 +0000 (17:18 -0700)]
Hide addons section

22 months agoMerge branch 'master' of git.blender.org:blender into soc-2017-package_manager
gandalf3 [Sat, 26 Aug 2017 09:09:25 +0000 (02:09 -0700)]
Merge branch 'master' of git.blender.org:blender into soc-2017-package_manager

22 months agoMove package manager code out of addon
gandalf3 [Sat, 26 Aug 2017 09:07:18 +0000 (02:07 -0700)]
Move package manager code out of addon

Code from addon repository: https://developer.blender.org/diffusion/BPMA/

22 months ago[cycles/ctest] fix failing tests when output folder doesn't exist yet.
Ray Molenkamp [Fri, 25 Aug 2017 23:17:49 +0000 (17:17 -0600)]
[cycles/ctest] fix failing tests when output folder doesn't exist yet.

22 months agoFix for fix (tm): Residue of the debug code
Sergey Sharybin [Fri, 25 Aug 2017 19:33:44 +0000 (21:33 +0200)]
Fix for fix (tm): Residue of the debug code

22 months agoFix mistake in previous tangent space optimization
Sergey Sharybin [Fri, 25 Aug 2017 19:29:59 +0000 (21:29 +0200)]
Fix mistake in previous tangent space optimization

22 months agoCycles: Cleanup, naming of variable
Sergey Sharybin [Fri, 25 Aug 2017 19:03:50 +0000 (21:03 +0200)]
Cycles: Cleanup, naming of variable

Always use b_ prefix for C++ RNA data.

22 months agoCycles: Add assert to catch possibly wrong logic
Sergey Sharybin [Fri, 25 Aug 2017 19:02:27 +0000 (21:02 +0200)]
Cycles: Add assert to catch possibly wrong logic

22 months agoCycles: Mark pixels with negative values as outliers
Lukas Stockner [Thu, 24 Aug 2017 21:15:30 +0000 (23:15 +0200)]
Cycles: Mark pixels with negative values as outliers

If a pixel has negative components, something already went wrong, so the best option is to just ignore it.

Should be good for 2.79.

22 months agoFix T52481: After making all local, local proxies of linked data get broken after...
Bastien Montagne [Fri, 25 Aug 2017 14:11:35 +0000 (16:11 +0200)]
Fix T52481: After making all local, local proxies of linked data get broken after file save and reload.

Issue was nasty hidden one, the dual status (mix of local and linked)
of proxies striking again.

Here, remapping process was considering obdata pointer of proxies as
indirect usage, hence clearing the 'LIB_TAG_EXTERN' of obdata pointer.
That would make savetoblend code not store any 'lib placeholder' for
obdata data-block, which was hence lost on next file read.

Another (probably better) solution here would be to actually consider
obdata of proxies are fully indirect usage, and simply reassign proxies
from their linked object's obdata on file read...

However, that change shall be safer for now, probably good for 2.79 too.

22 months agoAnother optimization of tangent space calculation
Sergey Sharybin [Fri, 25 Aug 2017 12:54:44 +0000 (14:54 +0200)]
Another optimization of tangent space calculation

Don't use quick sort for small arrays, bubble sort works way faster for small
arrays due to cache coherency. This is what qsort() from libc is doing actually.
We can also experiment unrolling some extra small arrays, for example 3 and 4
element arrays.

This reduces tangent space calculation for dragon from 3.1sec to 2.9sec.

22 months agoOptimize tangent space calculation by inlining functions
Sergey Sharybin [Fri, 25 Aug 2017 12:50:04 +0000 (14:50 +0200)]
Optimize tangent space calculation by inlining functions

Brings tangent space calculation from 4.6sec to 3.1sec for dragon model in BI.
Cycles is also somewhat faster, but it has other bottlenecks.

Funny thing, using simple `static inline` already gives a lot of speedup here.
That's just answering question whether it's OK to leave decision on what to
inline up to a compiler..

22 months agoCycles: Add utility function to query current value of scoped timer
Sergey Sharybin [Fri, 25 Aug 2017 12:15:51 +0000 (14:15 +0200)]
Cycles: Add utility function to query current value of scoped timer

22 months agoCycles: Correct logging of sued CPU intrisics
Sergey Sharybin [Fri, 25 Aug 2017 12:11:45 +0000 (14:11 +0200)]
Cycles: Correct logging of sued CPU intrisics

22 months agoCycles: Fix stack overflow during traversal caused by floating overflow
Sergey Sharybin [Fri, 25 Aug 2017 12:00:33 +0000 (14:00 +0200)]
Cycles: Fix stack overflow during traversal caused by floating overflow

Would be nice to be able to catch this with assert as well, will see what would
be the best way to do this/.\

Need to verify with Mai that this solves crash for her and maybe consider
porting this to 2.79.

22 months agoWM: ensure 3D view theme is used in select-loop
Campbell Barton [Fri, 25 Aug 2017 12:10:27 +0000 (22:10 +1000)]
WM: ensure 3D view theme is used in select-loop

Yet another case where theme could be used uninitialized.

22 months agoWM: initialize WM and deps before handling events
Campbell Barton [Fri, 25 Aug 2017 10:26:52 +0000 (20:26 +1000)]
WM: initialize WM and deps before handling events

This avoids obscure bugs where operators could run from
events that happen before the UI and depsgraph have been initialized.

See: D2809 for details.

22 months agoThis copyright text (copied to binary distros) had a confusing statement about
Ton Roosendaal [Fri, 25 Aug 2017 09:11:19 +0000 (11:11 +0200)]
This copyright text (copied to binary distros) had a confusing statement about
scripts being "Artwork" which is your sole property and free to license.

I've removed the reference to scripts in this text.

This was from 2002! With our Python scripts becoming part of how Blender runs,
such scripts now are officially required to be compliant with GNU GPL.

For more information; check the FAQ or consult foundation@blender.org
https://www.blender.org/support/faq/

22 months agoCorrect error in recent use of PyC_Long_*
Campbell Barton [Thu, 24 Aug 2017 16:09:23 +0000 (02:09 +1000)]
Correct error in recent use of PyC_Long_*

Regression in 46cf33bf0

22 months agoFix error using wrong theme settings w/ depth draw
Campbell Barton [Thu, 24 Aug 2017 13:19:27 +0000 (23:19 +1000)]
Fix error using wrong theme settings w/ depth draw

Clicks events before first draw would assert,
unlikely to cause user visible errors but
would assert in UI_ThemeGetColorPtr.

22 months agoFix T51907: New Depsgraph - Camera constraint is not evaluated properly
Sergey Sharybin [Thu, 24 Aug 2017 12:35:48 +0000 (14:35 +0200)]
Fix T51907: New Depsgraph - Camera constraint is not evaluated properly

This is more a workaround for until we've got proper visibility flush, which
will likely happen in blender2.8 branch.

22 months agoCycles: FIx issue with -0 being considered a non-finite value
Sergey Sharybin [Thu, 24 Aug 2017 12:32:56 +0000 (14:32 +0200)]
Cycles: FIx issue with -0 being considered a non-finite value

22 months agoCycles Bake: Fix overflow when using hundreds of images
Dalai Felinto [Thu, 24 Aug 2017 08:34:50 +0000 (10:34 +0200)]
Cycles Bake: Fix overflow when using hundreds of images

We have a hardcored limit of 1000 images to be baked.
However anything anove 100 would be leading to overflow in the code.

Caught by warning from builder bot (my compiler doesn't even complain
about this, but it should).

22 months agoFix Cycles CUDA transparent shadow error after recent fix in c22b52c.
Brecht Van Lommel [Thu, 24 Aug 2017 01:33:33 +0000 (03:33 +0200)]
Fix Cycles CUDA transparent shadow error after recent fix in c22b52c.

Fishy cat benchmark was rendering with wrong shadows. Cause is unclear,
adding printf or rearranging code seems to avoid this issue, possibly a
compiler bug. This reverts the fix and solves the OSL bug elsewhere.

22 months agoCode cleanup: remove shader context.
Brecht Van Lommel [Tue, 22 Aug 2017 13:00:52 +0000 (15:00 +0200)]
Code cleanup: remove shader context.

This was needed when we accessed OSL closure memory after shader evaluation,
which could get overwritten by another shader evaluation. But all closures
are immediatley converted to ShaderClosure now, so no longer needed.

22 months agoDocs: rename var and comment how it's used
Campbell Barton [Wed, 23 Aug 2017 16:05:11 +0000 (02:05 +1000)]
Docs: rename var and comment how it's used

switch_from_camera wasn't right since it was used for auto-perspective.

22 months agoCorrection to last fix
Campbell Barton [Wed, 23 Aug 2017 15:05:20 +0000 (01:05 +1000)]
Correction to last fix

22 months agoFix T52490: NDOF orbit doesn't lock in ortho view
Campbell Barton [Wed, 23 Aug 2017 14:47:47 +0000 (00:47 +1000)]
Fix T52490: NDOF orbit doesn't lock in ortho view

Regression in af3f7db caused by own fix for T51324

22 months agoFix bplayer (c)
Bastien Montagne [Wed, 23 Aug 2017 14:43:10 +0000 (16:43 +0200)]
Fix bplayer (c)

22 months agoFix T52396: Crash loading template w/o config dir
Campbell Barton [Wed, 23 Aug 2017 12:06:42 +0000 (22:06 +1000)]
Fix T52396: Crash loading template w/o config dir

22 months agoCycles: Add maximum depth stat to bvh builder
Mai Lavelle [Wed, 23 Aug 2017 04:40:35 +0000 (00:40 -0400)]
Cycles: Add maximum depth stat to bvh builder

22 months agoFix implementation of atomic update max and move to a central location
Mai Lavelle [Wed, 23 Aug 2017 04:40:04 +0000 (00:40 -0400)]
Fix implementation of atomic update max and move to a central location

While unlikely to have had any serious effects because of limited use, the
previous implementation was not actually atomic due to a data race and
incorrectly coded CAS loop. We also had duplicates of this code in a few
places, it's now been moved to a single location with all other atomic
operations.

22 months agoFix T51805: Overlapping volumes renders incorrect on AMD GPU
Sergey Sharybin [Wed, 23 Aug 2017 10:32:48 +0000 (12:32 +0200)]
Fix T51805: Overlapping volumes renders incorrect on AMD GPU

We need to make sure we can store all volume closures for all objects in volume
stack. This is a bit tricky to detect what would be the "nestness" level of
volumes so for now use maximum possible stack depth. Might cause some slowdown,
but better to give reliable render output than to fail quickly.

Should be safe for 2.79 after extra eyes.

22 months agoCleanup: mark VA_NARGS_COUNT as public
Campbell Barton [Wed, 23 Aug 2017 10:04:26 +0000 (20:04 +1000)]
Cleanup: mark VA_NARGS_COUNT as public

Was already used in two other headers, remove underscore prefix.

22 months agoCleanup: move variadic defines to their own header
Campbell Barton [Wed, 23 Aug 2017 10:00:48 +0000 (20:00 +1000)]
Cleanup: move variadic defines to their own header

So we can use in headers without pulling in many other defines.

22 months agoFix T52218: Missing update when reconnecting node
Sergey Sharybin [Wed, 23 Aug 2017 09:47:47 +0000 (11:47 +0200)]
Fix T52218: Missing update when reconnecting node

If node was connected to output, we tag tree for update no matter where
the node was re-plugged to.

Should be safe for 2.79.

22 months agoRNA: use string-join to simplify operator register
Campbell Barton [Wed, 23 Aug 2017 08:17:42 +0000 (18:17 +1000)]
RNA: use string-join to simplify operator register

Also sanity check macro-operator ID's.

22 months agoBLI_string_utils: string joining utility functions
Campbell Barton [Wed, 23 Aug 2017 08:16:46 +0000 (18:16 +1000)]
BLI_string_utils: string joining utility functions

Includes a version that takes a separator and macros for convenience.