Blender Git Loki

Kaikki Blender Git kommitit.

Page: 5898 / 8462

June 25, 2013, 10:30 (GMT)
Use bit-shift op for all bit-flags.

Btw, there is a comment stating that bits 12-15 are the same for uiBlock->flag and uiBut->flag, this is obviously no more true currently (maybe it is now bits 14-17, i.e. ALIGN flags?).
June 25, 2013, 09:32 (GMT)
Merging r57726 through r57728 from trunk into soc-2013-depsgraph_mt

June 25, 2013, 09:27 (GMT)
Include DNA_scene_types before ED_object instead of forward enum declaration

Forward enum declaration is a bad idea, especially for C++ which requires
enum specification to dteermine which data type to use to store it.

Alternative would be to not use enum as an arument and pass it as int,
but actually would rather be strict on typing -- using explicit enum
as parameter type helps understanding the code and prevents possible
mistakes when using the function.
June 25, 2013, 09:04 (GMT)
Experimental feature to lock the interface while rendering

Added function called WM_set_locked_interface which does
two things:

- Prevents event queue from being handled, so no operators
or values are even possible to run or change. This prevents
any kind of "destructive" action performed from user while
rendering.

- Locks interface refresh for regions which does have lock
set to truth in their template. Currently it's just a 3D
viewport, but in the future more regions could be considered
unsafe, or we could want to lock different parts of
interface when doing different jobs.

This is needed because 3D viewport could be using or changing
the same data as renderer currently uses, leading to threading
conflict.

Notifiers are still allowed to handle, so render progress is
seen on the screen, but would need to doublecheck on this, in
terms some notifiers could be changing the data.

For now interface locking happens for render job only in case
"Lock Interface" checkbox is enabled.

Currently this option would only make rendering thread-safe, but
in the future more benefits are possible to gain from it. Namely,
if we'll make renderer using it's own graph, this option would
allow to free memory used by 3D viewport graph, which would help
keeping memory usage low (or even would allow renderer not to
copy anything in this case).

Initially thought this change will also allow to free DMs used
by viewport, but we couldn't actually do this. This is because
of modifiers which uses other objects (like boolean), They're
in fact using viewport DM. This is bad because of few reasons.

We currently need to have viewport DM when rendering.
And for sure even in background render viewport DMs are being
calculated. This sounds like 2x computing is needed: one is for
viewport DM and one is for RenderDM.

If we'll have local graphs, we'll be able to compute RenderDMs
only and store them in graph. This would require a bit more of
the memory, but would solve current issues with viewport DM
used for modifiers operands while rendering and it should give
quite noticeable speedup.

Other tools like backing would also benefit of this option,
but rather get approval of current way of locking first.
June 25, 2013, 07:27 (GMT)
Merging r57695 through r57725 from trunk into soc-2013-desgraph_mt

June 25, 2013, 07:22 (GMT)
Fix typo made back in svn rev35785

Callback handle was assigning to wrong storage in RE_draw_lock_cb.
So far it was completely harmless because all the callbacks are
using the same handle, so test_break_callback was using correct
handle, and since draw_lock_callback didn't use handle at all
nobody noticed this.

But this typo lead to draw_lock_callback using NULL instead of
real RenderJob, which is bad for the feature we're working in
GSoC branch.
June 25, 2013, 00:49 (GMT)
Buildbot: disable command length workaround for now, seems to give link errors.
June 25, 2013, 00:11 (GMT)
Buildbot: another workaround for the Windows command length limit, this time
with the freestyle module which has 242 cpp files.
June 24, 2013, 23:55 (GMT)
Attempt to workaround mingw64 buildbot issue with Windows command length limits,
by splitting the compositor module into 3 parts. The operating system limit is
32767, which gives less than 120 characters per file with 272 cpp files.
June 24, 2013, 23:38 (GMT)
Adding a do_version for the base LoD level on objects.
June 24, 2013, 23:24 (GMT)
Fix OpenGL render not working correct with display color space set to None
(color management off).
June 24, 2013, 23:13 (GMT)
Adding code to detect when an LoD switch is needed in the viewport. It currently just prints to the console. This print will be replaced with actual switching code in the near future.
June 24, 2013, 22:48 (GMT)
Fix for invalid zero-length orientation vectors.
Problem report by flokkievids in the BA Freestyle thread, thanks!

Also made changes to suppress warnings in strip creation when Freestyle debugging is disabled.
June 24, 2013, 22:41 (GMT)
Fix particle hair display percentage not properly getting restored after
rendering. This used to happen in an unneeded frame change update which was
removed. For heavy particle systems this could have a bad impact on viewport
performance after rendering.
June 24, 2013, 22:41 (GMT)
Fix 2d masking for pressure masking, also change pressure cutoff so that
high luminance areas show up first when pressure increases.
June 24, 2013, 22:41 (GMT)
Fix #35767: transforming nodes in the node editor changed the wireframe color
of the active object in the 3D view. This was due to sharing a global G.moving
flag to indicate that transform is active, now it's only set per transform data
type so different editors don't influence each other.
June 24, 2013, 22:41 (GMT)
Fix unnecessary 3D viewport redraws in various cases, in particular when editing
node materials.

Area and region listener callbacks now get the screen and area pointers passed, so
they can do more fine grained checks to see if redraw is really needed, for example
depending on the 3D view drawtype.
June 24, 2013, 22:41 (GMT)
Fix unnecessary redraw of 3D views when making changes in compositing nodes.
June 24, 2013, 22:41 (GMT)
Render stats text: show elapsed time for blender internal, hide useless "Single Layer"
at the start, more clearly indicate what the render time of the last frame was, some
other tweaks for consistency.
June 24, 2013, 21:11 (GMT)
Making sure free_nodesystem only frees non-NULL data. This helps address some problems in the BGE with loading multiple blendfiles.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021