Skip to content

Commit

Permalink
PBGI: Load saved GI points file
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert committed Apr 12, 2011
1 parent fec4672 commit 598ab69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions io/yaf_integrator.py
Expand Up @@ -123,6 +123,7 @@ def exportIntegrator(self, scene):
yi.paramsSetBool("render_single_pixel", scene.intg_pbgi_render_single_pixel)
yi.paramsSetInt("pixel_x", scene.intg_pbgi_pixel_x)
yi.paramsSetInt("pixel_y", scene.intg_pbgi_pixel_y)
yi.paramsSetBool("do_load_gi_points", scene.intg_pbgi_do_load_gi_points)


yi.createIntegrator("default")
Expand Down
2 changes: 2 additions & 0 deletions ui/properties_yaf_integrator.py
Expand Up @@ -140,6 +140,7 @@
Scene.intg_pbgi_render_single_pixel = BoolProperty(default = False);
Scene.intg_pbgi_pixel_x = IntProperty(min = 0, max = 1000, default = 0);
Scene.intg_pbgi_pixel_y = IntProperty(min = 0, max = 1000, default = 0);
Scene.intg_pbgi_do_load_gi_points = BoolProperty(default = False);


class YAF_PT_render(bpy.types.Panel):
Expand Down Expand Up @@ -273,4 +274,5 @@ def draw(self, context):
col.prop(context.scene, "intg_pbgi_render_single_pixel", text= "Render Single Pixel")
col.prop(context.scene, "intg_pbgi_pixel_x", text= "X")
col.prop(context.scene, "intg_pbgi_pixel_y", text= "Y")
col.prop(context.scene, "intg_pbgi_do_load_gi_points", text= "Load Points from File")

0 comments on commit 598ab69

Please sign in to comment.