Sorry, three commits in one, became difficult to untangle..
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 29 Sep 2009 19:12:12 +0000 (19:12 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Tue, 29 Sep 2009 19:12:12 +0000 (19:12 +0000)
commit15d07720e515a2e9caada6ee9900c388c5e06490
tree8154e70a86e3b9b0cf42a581db95f0a7d4029238
parent7f5dc4644f72ffb56d23db79cc3208dbca2d5eab
Sorry, three commits in one, became difficult to untangle..

Editors Modules

* render/ module added in editors, moved the preview render code there and
  also shading related operators.
* physics/ module made more consistent with other modules. renaming files,
  making a single physics_ops.c for operators and keymaps. Also move all
  particle related operators here now.
* space_buttons/ now should have only operators relevant to the buttons
  specificially.

Updates & Notifiers

* Material/Texture/World/Lamp can now be passed to DAG_id_flush_update,
  which will go back to a callback in editors. Eventually these should
  be in the depsgraph itself, but for now this gives a unified call for
  doing updates.
* GLSL materials are now refreshed on changes. There's still various
  cases missing,
* Preview icons now hook into this system, solving various update cases
  that were missed before.
* Also fixes issue in my last commit, where some preview would not render,
  problem is avoided in the new system.

Icon Rendering

* On systems with support for non-power of two textures, an OpenGL texture
  is now used instead of glDrawPixels. This avoids problems with icons get
  clipped on region borders. On my Linux desktop, this gives an 1.1x speedup,
  and on my Mac laptop a 2.3x speedup overall in redrawing the full window,
  with the default setup. The glDrawPixels implementation on Mac seems to
  have a lot of overhread.
* Preview icons are now drawn using proper premul alpha, and never faded so
  you can see them clearly.
* Also tried to fix issue with texture node preview rendering, globals can't
  be used with threads reliably.
50 files changed:
release/scripts/ui/buttons_particle.py
source/blender/blenkernel/BKE_depsgraph.h
source/blender/blenkernel/BKE_node.h
source/blender/blenkernel/intern/depsgraph.c
source/blender/editors/Makefile
source/blender/editors/SConscript
source/blender/editors/include/ED_particle.h
source/blender/editors/include/ED_physics.h
source/blender/editors/include/ED_render.h [moved from source/blender/editors/include/ED_previewrender.h with 90% similarity]
source/blender/editors/include/UI_interface_icons.h
source/blender/editors/interface/interface_icons.c
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/interface_widgets.c
source/blender/editors/object/object_intern.h
source/blender/editors/object/object_ops.c
source/blender/editors/physics/particle_boids.c [moved from source/blender/editors/physics/physics_boids.c with 78% similarity]
source/blender/editors/physics/particle_edit.c [moved from source/blender/editors/physics/editparticle.c with 97% similarity]
source/blender/editors/physics/particle_object.c [new file with mode: 0644]
source/blender/editors/physics/physics_fluid.c [moved from source/blender/editors/physics/ed_fluidsim.c with 99% similarity]
source/blender/editors/physics/physics_intern.h
source/blender/editors/physics/physics_ops.c [new file with mode: 0644]
source/blender/editors/physics/physics_pointcache.c [moved from source/blender/editors/physics/ed_pointcache.c with 89% similarity]
source/blender/editors/render/Makefile [moved from source/blender/editors/preview/Makefile with 98% similarity]
source/blender/editors/render/SConscript [moved from source/blender/editors/preview/SConscript with 78% similarity]
source/blender/editors/render/render_intern.h [moved from source/blender/editors/preview/previewrender_intern.h with 57% similarity]
source/blender/editors/render/render_ops.c [new file with mode: 0644]
source/blender/editors/render/render_preview.c [moved from source/blender/editors/preview/previewrender.c with 98% similarity]
source/blender/editors/render/render_shading.c [new file with mode: 0644]
source/blender/editors/space_api/spacetypes.c
source/blender/editors/space_buttons/buttons_intern.h
source/blender/editors/space_buttons/buttons_ops.c
source/blender/editors/space_buttons/space_buttons.c
source/blender/editors/space_file/file_draw.c
source/blender/editors/space_node/node_draw.c
source/blender/editors/space_node/node_edit.c
source/blender/editors/space_node/space_node.c
source/blender/editors/space_view3d/space_view3d.c
source/blender/makesdna/DNA_modifier_types.h
source/blender/makesdna/DNA_object_types.h
source/blender/makesrna/intern/rna_brush.c
source/blender/makesrna/intern/rna_internal.h
source/blender/makesrna/intern/rna_lamp.c
source/blender/makesrna/intern/rna_material.c
source/blender/makesrna/intern/rna_texture.c
source/blender/makesrna/intern/rna_world.c
source/blender/nodes/intern/TEX_util.c
source/blender/nodes/intern/TEX_util.h
source/blender/render/intern/source/texture.c
source/blender/windowmanager/WM_types.h
source/blender/windowmanager/intern/wm_init_exit.c